in reply to Inserting an empty string, not NULL, with $dbh->quote()
but is there anyway to override this behaviour?
Yes, don't pass undef!
$dbh->quote($x // '') [download]