ravim has asked for the wisdom of the Perl Monks concerning the following question:
After this I fetch the rows and get 1 row as result (which is what I should).my $h_sql1 = $db_inv->prepare_cached( "select items from item_a where +item_code = ? and item_stock = 8" ) or die $DBI::errstr; $h_sql1->execute( "A0001" );
This does not returns any rows. I have checked it with tracelevel set to 1, 2, and 3.my $h_sql1 = $db_inv->prepare_cached( "select items from item_a where +item_code = ? and item_stock = ?" ) or die $DBI::errstr; $h_sql1->execute( "A0001", 8 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Strange problem with DBI placeholders
by runrig (Abbot) on Sep 12, 2006 at 16:39 UTC | |
|
Re: Strange problem with DBI placeholders
by jdtoronto (Prior) on Sep 12, 2006 at 15:54 UTC | |
|
Re: Strange problem with DBI placeholders
by gefilte (Initiate) on Sep 12, 2006 at 14:57 UTC | |
by ravim (Initiate) on Sep 12, 2006 at 15:24 UTC | |
|
Re: Strange problem with DBI placeholders
by rir (Vicar) on Sep 12, 2006 at 19:47 UTC | |
|
Re: Strange problem with DBI placeholders
by skx (Parson) on Sep 12, 2006 at 20:18 UTC | |
by Anonymous Monk on Sep 13, 2006 at 14:54 UTC |