Closed omeuid closed 3 months ago
Yes, I agree with you. Actually in PGAPI_GetData
function after copy_and_convert_field
call that returns SQL_ERROR
it goes in default case and overrides the error. So, copy_and_convert_field
should return COPY_GENERAL_ERROR
.
@omeuid can you provide a Pull Request please ?
Hi,
The ODBC API documentation of the SQLGetData function says:
But the PostgreSQL ODBC driver returns a generic HY000 SQLSTATE.
As I understand, to fix the issue the following change could be made.
In the _copy_and_convertfield method from the convert.c file, replace the next fragment:
by the next one:
Regards, Carlos