blackjudas has asked for the wisdom of the Perl Monks concerning the following question:
While I don't see any problems with this code, the end result from this call doesn't produce any sql errors so I can assume that the statement has been executed and the row(s) deleted. But when I check the table ... it still contains the row that was to be removed. Can anyone enlighten me as to what I'm missing here (running out of options).sub del_session { my $user = $_; my $dbh = DB_Methods::db_connect(); my $sth = $dbh->prepare("DELETE FROM session WHERE user_name L +IKE ?"); $sth->bind_param(1, $user); $sth->{ChopBlanks} = 1; unless ($sth->execute()) {die $dbh->errstr();} $sth->finish(); $dbh->disconnect(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error in quoting?
by chromatic (Archbishop) on Apr 24, 2001 at 03:57 UTC | |
|
Re: Error in quoting?
by Masem (Monsignor) on Apr 24, 2001 at 00:06 UTC | |
|
Re: Error in quoting?
by voyager (Friar) on Apr 24, 2001 at 00:52 UTC | |
|
Re: Error in quoting?
by blackjudas (Pilgrim) on Apr 24, 2001 at 19:37 UTC |