-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
89f161f
to
b2e171f
Compare
893ffa2
to
4c9eb34
Compare
2f4eae7
to
b8686b9
Compare
ed576c5
to
e27cfc8
Compare
13dc813
to
61e494f
Compare
53f52b2
to
860a033
Compare
458832d
to
c328e2c
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.