D
Daniel de Angelis Cordeiro
Hi,
I'm using Ruby ODBC (with unixodbc and Postgresql).
RubyODBC is loosing my error codes when running prepared statements.
When I execute a faulty SQL command using ODBC:atabase.run() or
ODBC:atabase.do() I get the following native error:
23505 (7) [unixODBC]ERROR: duplicate key value violates unique
constraint "<pk_name>"
However, when I execute the same SQL command using a prepared
statement, I get the following internal error:
INTERN (0) [RubyODBC]Stale ODBC::Statement
Is there a way to recover the type of the native error when executing
a prepared statement?
Thanks in advance,
Daniel
I'm using Ruby ODBC (with unixodbc and Postgresql).
RubyODBC is loosing my error codes when running prepared statements.
When I execute a faulty SQL command using ODBC:atabase.run() or
ODBC:atabase.do() I get the following native error:
23505 (7) [unixODBC]ERROR: duplicate key value violates unique
constraint "<pk_name>"
However, when I execute the same SQL command using a prepared
statement, I get the following internal error:
INTERN (0) [RubyODBC]Stale ODBC::Statement
Is there a way to recover the type of the native error when executing
a prepared statement?
Thanks in advance,
Daniel