1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 22:28:47 -04:00

DBD-SQLite: 36_hooks.t also segfaults on freebsd

This commit is contained in:
Kenichi Ishigaki 2009-07-21 14:10:42 +00:00
parent cb8a0ec896
commit 1e3d1171a8

View file

@ -112,7 +112,10 @@ foreach my $call_func (@CALL_FUNCS) {
: DBD::SQLite::OK; : DBD::SQLite::OK;
return $retval; return $retval;
}; };
$dbh->$call_func($authorizer, "set_authorizer") unless $^O eq 'MSWin32'; # FIXME: this line causes segfalut under Win32 unless ($^O =~ /MSWin32|freebsd/) {
# FIXME: this line may cause segfalut
$dbh->$call_func($authorizer, "set_authorizer");
}
# try an insert (should be authorized) and check authorizer args # try an insert (should be authorized) and check authorizer args
$dbh->do("INSERT INTO hook_test VALUES ('auth_test')"); $dbh->do("INSERT INTO hook_test VALUES ('auth_test')");