> >Which version of psqlodbc? Againist which PgSQL?
>
> Sorry, 8.01.0105 against 8.1.0
There is a bug in 08.01.0105 and the fix since 08.01.0106:
| 2) psqlodbc-sqlstate.diff
| fix sqlstate iin case of error in statement
Please try recent development version (08.01.0107 or 08.01.0106 at least).
Milton: Does it solve your problem too?
Regards,
Luf