Re[2]: [Dbi-interbase-devel] Coredump using Tie::DBI
Status: Beta
Brought to you by:
edpratomo
From: Michael S. <mi...@ch...> - 2000-08-28 17:42:39
|
Hello Edwin, Monday, August 28, 2000, 4:03:22 PM, you wrote: EP> Tie::DBI attempted to do an INSERT, instead of the expected UPDATE. Tie::DBI contains the bug: sub EXISTS { my ($s,$key) = @_; $key = $s->_quote($s->{key},$key) unless $s->{CanBindSelect}; my $st = $s->_run_query('fetch1',"SELECT $s->{key} FROM $s->{table} WHERE $s->{key} = ?",$key); croak $DBI::errstr unless $st; $st->fetch; my $rows = $st->rows; $st->finish; $rows != 0; } The last line should be changed with $rows > 0, and no matter, as your driver doesn't return proper rows value, Tie::DBI won't work. Best regards, Michael mailto:mi...@ch... |