[Sqlrelay-discussion] DBD::SQLRelay bind_param_inout problem (0.41), and minimal patch.
Brought to you by:
mused
|
From: hiroaki k. <hk...@cp...> - 2009-12-22 04:31:43
|
Hello. I found following script returns undefined value in bound inout variable: $id ... my $sth = $dbh->prepare(<<END); insert into nr_test(nr_dir) values(?) returning nr_test.rowid into ? END my $place; $sth->bind_param(++$place, $dir); $sth->bind_param_inout(++$place, \ my $id, 64); ... Note: Above worked fine on sqlrelay-0.37.1. After some stracing, I finally found DBD::SQLRelay::st::execute calls $cursor->clearBinds *before* $cursor->getOutputBindString. Attached patch will fix this problem. |