stoolpigeon
Programmer
I am writing a VB app that uses PostgreSQL on the back end. This question has more to do w/the odbc than the database.
My database tables are built with the no oid option.
When I use ADO to open a recordset as read only everything is fine. If I send it a query like "SELECT * FROM foo" that is what ODBC sends to the DB.
If I use a Keyset recordset ODBC changes my query and sends the above as "SELECT *, CTOID, OID FROM foo". Then I get an error because there is no OID column on the table. Interestingly enough this only happens if I do a simple select on a single table. If I do a JOIN across 2 or more tables- my query does not get touched.
I would appreciate it if anyone knows of a setting in my DSN that needs to be changed or if there is a way I can work around this.
thanks,
Ron
My database tables are built with the no oid option.
When I use ADO to open a recordset as read only everything is fine. If I send it a query like "SELECT * FROM foo" that is what ODBC sends to the DB.
If I use a Keyset recordset ODBC changes my query and sends the above as "SELECT *, CTOID, OID FROM foo". Then I get an error because there is no OID column on the table. Interestingly enough this only happens if I do a simple select on a single table. If I do a JOIN across 2 or more tables- my query does not get touched.
I would appreciate it if anyone knows of a setting in my DSN that needs to be changed or if there is a way I can work around this.
thanks,
Ron