Subject: | Segmentation fault when passing database handle to selectall_arrayref |
This program segfaults:
use DBI;
$dbh = DBI->connect("dbi:Sybase:MYSERVER", 'myuser', 'mypassword');
$dbh->selectall_arrayref($dbh);
The segfault is in ct.c (freetds 0.91-git0a42888) but I suspect that DBD::Sybase is passing a duff pointer to freetds. It should check that the argument to selectall_arrayref is some SQL text and not the database handle itself.
DBD::Sybase 1.15, DBI 1.631, perl 5.18.2.