Apache OpenOffice (AOO) Bugzilla – Issue 21133
Postgres table joins using unixODBC fails
Last modified: 2006-05-31 14:29:06 UTC
using debian sid and the latest PG & odbc-postgresql (7.3.4-7), unixodbc(2.2.4-8), i can query data fine on a remote PG database (ver 7.3.2r1-6) as long as the data is in one table, but as soon as I try to join tables, I get an error pop-up: [unixODBC]ERROR: Column Reference "ctid" is ambiguous Is this an error coming from the unixODBC lib or is it referring to a problem that OOo has with unixODBC? In any case, is there a fix or workaround?
OK - after a half day of chasing down rumors and deciphering ODBC trivia, it looks like the reason for this is that OOo wants to use something called 'dynamic cursors' to increase the efficiency of the query and either postgres or the version of unixODBC that I'm using, doesn't like using them. The fix is to include the following lines in the DSN stanza of your /etc/odbc.ini file: EnableScrollableCursors = No UpdatableCursors = No SelectLoops = No These were all inserted at the same time, so I'm not sure which of them actually did the trick, but I also had to restart the whole system (not only OOo), as restarting OOo by itself didn't do the trick. If you know what service actually reads this file, I'd like to know.
change subcomponent to 'none'
closing