mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 14:19:10 -04:00
23 lines
488 B
Perl
23 lines
488 B
Perl
use strict;
|
|
use warnings;
|
|
use lib "t/lib";
|
|
use SQLiteTest qw/connect_ok requires_sqlite/;
|
|
use Test::More;
|
|
use if -d ".git", "Test::FailWarnings";
|
|
|
|
BEGIN { requires_sqlite('3.6.23') }
|
|
|
|
open my $trace_fh, '>', \my $trace_string;
|
|
|
|
DBI->trace(3, $trace_fh);
|
|
|
|
my $dbh = connect_ok(PrintError => 0, RaiseError => 1);
|
|
|
|
eval {
|
|
$dbh->selectrow_array(q{ SELECT FROM FROM });
|
|
};
|
|
|
|
like $trace_string, qr/sqlite3_log/,
|
|
'sqlite3_log messages forwarded to DBI tracing mechanism';
|
|
|
|
done_testing;
|