Subject: | Using hooks like 'create_function' do not return errors when they fail |
Hi,
I just ran into this annoying bug; the below code should die with an
informative error when the call fails. However, teh dbd::sqlite xs code
does not return any errors in such situations, leaving the user to guess
what could have gone wrong....
$dbh->func(
'test', # name of function to use in SQL
-1, # amount of arguments that will be passed
sub { 1 }, # sub routine to callback to
'create_function' # sqlite name for this hook
) or die $dbh->err;