L
Lee
I've come across a bug or just one of my own mistakes in the net::mysql
package. After querying, the package keeps the query. When another
query is entered, it is silently rejected and instead the first query
is executed. For instance,
use Net::MySQL;
my $query = "update $table set id=LAST_INSERT_ID(id+1)";
$mysql->query($query);
die $mysql->get_error_message if $mysql->is_error;
$query="SELECT * FROM $table";
$mysql->query($query);
die $mysql->get_error_message if $mysql->is_error;
This code will excecute the update query twice and the select query
none. Has anyone come across something like this? This example is
from a script I've been building that is about 700 lines long and so I
didn't post it all, but if anyone would want to help me, I'd provide
anything.
Any help?
package. After querying, the package keeps the query. When another
query is entered, it is silently rejected and instead the first query
is executed. For instance,
use Net::MySQL;
my $query = "update $table set id=LAST_INSERT_ID(id+1)";
$mysql->query($query);
die $mysql->get_error_message if $mysql->is_error;
$query="SELECT * FROM $table";
$mysql->query($query);
die $mysql->get_error_message if $mysql->is_error;
This code will excecute the update query twice and the select query
none. Has anyone come across something like this? This example is
from a script I've been building that is about 700 lines long and so I
didn't post it all, but if anyone would want to help me, I'd provide
anything.
Any help?