[RADIATOR] SqlDb.pm - sql server failover.
Michael
ringo at vianet.ca
Thu Nov 10 12:15:17 CST 2011
In SqlDb.pm sub do{} should a mysql syntax error also be reason NOT to disconnect/reconnect from/to the mysql server?
# Primary key violation is not a cause for disconnection.
# Also SQL syntax error.
return $rc if defined $rc
|| $reason =~ /error in your SQL syntax/i
|| $reason =~ /violation/i
|| $reason =~ /duplicate key/im
|| $reason =~ /Duplicate entry/im
|| $reason =~ /^ORA-00001/;
Michael
More information about the radiator
mailing list