mridoni / gixsql

GixSQL is an ESQL preprocessor and a series of runtime libraries to enable GnuCOBOL to access PostgreSQL, ODBC, MySQL, Oracle and SQLite databases.
GNU General Public License v3.0
16 stars 8 forks source link

libpgsql: fix bad row acces #113

Closed GitMensch closed 2 years ago

GitMensch commented 2 years ago

this fix may not be enough - but it gets me from an endless loop in the application ...

("next record" should be read, running into this code, getting NULL result, setting "invalid data" result, getting sqlstate 00000 from the driver [I'm creating an issue for that next], checking the state, reading the "next" record from the application, getting to the same place...)

... to an "Open cursor failed" place (which I hope to inspect tomorrow).