in reply to Re: prepared statement
in thread prepared statement
in address_exists as long as you call $address_exists_sth->finish before exiting address_exists or set $if_active to whatever is appropriate, i.e. probably 1 (automatically call $sth->finish), though 3 (create a new statement handle and remove the previous one from the cache) is an option if you are using DBI greater than 1.40.my $if_active = 1; my $address_exists_sth = $dbh->prepare_cached( 'SELECT * FROM EMAILS WHERE `email`=?', { sub =>'address_exists' }, $if_active, );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: prepared statement
by saintex (Scribe) on Aug 18, 2010 at 19:30 UTC | |
by ikegami (Patriarch) on Aug 18, 2010 at 20:23 UTC | |
by james2vegas (Chaplain) on Aug 18, 2010 at 20:03 UTC | |
by saintex (Scribe) on Aug 19, 2010 at 11:11 UTC | |
by Tux (Canon) on Aug 19, 2010 at 14:00 UTC |