Support for use tablename acquired as regclass at previous query in PostgreSQL (prevent to "delimite" two times)#263
Open
Vlczech wants to merge 13 commits into
Open
Support for use tablename acquired as regclass at previous query in PostgreSQL (prevent to "delimite" two times)#263Vlczech wants to merge 13 commits into
Vlczech wants to merge 13 commits into
Conversation
…ly allowed (possible BC break)
If data contains special char, table is named with quotation marks also. Thus regclass returns name with quotes and for example operation ->table() delimites such delimited regclass name obtained from SELECT for the second time. So for example $tbl='someschema."some-table"' is in $db->table() delimited to "someschema"."""some-table""". Note: Tested for PostgreSQL only.
Member
|
Does this feature apply only to Postgresql, or any other databases? |
dg
force-pushed
the
master
branch
2 times, most recently
from
October 6, 2020 17:24
a9e5763 to
c3cc31a
Compare
Author
|
@dg: I tried to code it to be universal as well for other databases for reverse operation to delimite(), but don't know if any other database has some feature like regclass in postgresql. I don't like to have this feature in ResultSet if it's usable for something specific only (in this case PostgreSQL), so i decided to put it at the driver level :-) |
dg
force-pushed
the
master
branch
2 times, most recently
from
October 15, 2020 22:53
e91b234 to
953502b
Compare
dg
force-pushed
the
master
branch
6 times, most recently
from
October 30, 2020 13:01
52d72e1 to
fd0d57c
Compare
dg
force-pushed
the
master
branch
2 times, most recently
from
November 25, 2020 22:28
f06c30e to
1b974d3
Compare
dg
force-pushed
the
master
branch
2 times, most recently
from
April 30, 2021 10:10
ba62a2a to
5e1c47e
Compare
dg
force-pushed
the
master
branch
3 times, most recently
from
May 4, 2021 19:12
f8e1e59 to
4862e4d
Compare
dg
force-pushed
the
master
branch
4 times, most recently
from
May 31, 2021 17:05
2986f4e to
a8541e0
Compare
dg
force-pushed
the
master
branch
4 times, most recently
from
August 29, 2021 14:55
a7aaa31 to
ea8d97b
Compare
dg
force-pushed
the
master
branch
4 times, most recently
from
September 21, 2021 00:03
66dbaa3 to
9f18416
Compare
dg
force-pushed
the
master
branch
2 times, most recently
from
November 8, 2021 15:28
f0e3796 to
755fea4
Compare
dg
force-pushed
the
master
branch
7 times, most recently
from
December 12, 2021 03:54
8e0c1ee to
0cb2c17
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If data contains special char, table is named with quotation marks also. Thus regclass returns name with quotes and for example operation ->table() delimites such delimited regclass name obtained from SELECT for the second time. So for example $tbl='someschema."some-table"' is in $db->table() delimited to "someschema"."""some-table""".
Note: Tested for PostgreSQL only.