VB6, ADO returns EOF via ODBC but has records in PSQL

From: "Erika Marlow" <Erika(dot)Marlow(at)nisc(dot)coop>
To: <pgsql-odbc(at)postgresql(dot)org>
Subject: VB6, ADO returns EOF via ODBC but has records in PSQL
Date: 2006-10-19 17:00:25
Message-ID: 8388742B98C6BE479282C543CD000EE0034C9DAE@ndes1.nisc.lan
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

I'm trying to find the set of records that are not in a comma delimited
list using an SQL statement like:

SELECT name FROM construction WHERE name NOT IN ('a1 ', 'a2
', '') ORDER BY name;

The values in the field are padded with spaces and I have to keep them
that way for data integrity between software systems. If I send this
statement to the PostgreSQL database with ADO via the ODBC driver
(adoRs.Open sql, dbconn, adOpenStatic, adLockOptimistic) I don't get any
records. However, if I execute the same statement in psql directly, I
get nineteen rows.

Is there a property setting or something that I'm missing when using the
driver?

Thanks,

<http://www.nisc.coop/> Erika Marlow___________________
Senior Software Specialist
National Information Solutions Cooperative
One Innovation Circle
Lake St. Louis, MO 63367
**Email: erika(dot)marlow(at)nisc(dot)coop <mailto:erika(dot)marlow(at)nisc(dot)coop>
**Phone: 866.WWW.NISC (866.999.6472)
**Direct: 636.755.2519

Browse pgsql-odbc by date

  From Date Subject
Next Message Arnaud Lesauvage 2006-10-19 17:13:31 Re: Improve ODBC Throughput ?
Previous Message Benjamin Krajmalnik 2006-10-19 16:33:53 Re: Improve ODBC Throughput ?