-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for use tablename acquired as regclass at previous query in PostgreSQL (prevent to "delimite" two times) #263
base: master
Are you sure you want to change the base?
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.
Does this feature apply only to Postgresql, or any other databases? |
a9e5763
to
c3cc31a
Compare
@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 :-) |
e91b234
to
953502b
Compare
52d72e1
to
fd0d57c
Compare
f06c30e
to
1b974d3
Compare
a329d1b
to
9f82d9d
Compare
1769a67
to
b02f117
Compare
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.