mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-08 06:38:12 -04:00
21 lines
472 B
Perl
21 lines
472 B
Perl
#!/usr/bin/perl
|
|
|
|
# Tests basic login and pragma setting
|
|
|
|
use strict;
|
|
BEGIN {
|
|
$| = 1;
|
|
$^W = 1;
|
|
}
|
|
|
|
use Test::More tests => 5;
|
|
use t::lib::Test;
|
|
|
|
my $dbh = sqlite_connect();
|
|
ok( $dbh->{sqlite_version}, '->{sqlite_version} ok' );
|
|
diag("sqlite_version=$dbh->{sqlite_version}");
|
|
ok( $dbh->func('busy_timeout'), 'Found initial busy_timeout' );
|
|
ok( $dbh->func(5000, 'busy_timeout') );
|
|
is( $dbh->func('busy_timeout'), 5000, 'Set busy_timeout to new value' );
|
|
|
|
$dbh->disconnect;
|