-
Notifications
You must be signed in to change notification settings - Fork 22
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
Identifier problem in IBM System i #45
Comments
Go to line 849 in odbc_fdw.c and remove the underscore from the column alias. You'll probably have to rebuild and compile. Does anyone know of a good reason not to remove the underscore for good? |
Hello, I am trying to access DB2 table from postgresql 9.5 using odbc_fdw. I was receiving same error, so I modified underscore as suggested and rebuild it. Now whenever I select data from foreign table it crashes with below error. I ran the trace command on odbc and attached is output. |
Please share the traces in plain text if you don't mind |
Hello, |
Hello, Just wanted to check if we had any solution or alternative for this. |
An IBM System i is connected to PostgreSQL 9.6 on Ubuntu 16.04 via IBM ODBC Driver and (patched) odbc_fdw. After successfully importing the table definition with IMPORT FOREIGN SCHEMA, I'm unable to query the table, e.g.:
Independently of the query issued, the wrapper executes a count on the table. The ODBC trace file shows the following:
DB2/i5 identifiers cannot start with an underscore.
Ideas for a workaround? Thank you!
The text was updated successfully, but these errors were encountered: