1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

oops, forgot to rename

This commit is contained in:
Kenichi Ishigaki 2010-01-11 07:36:26 +00:00
parent 5040024ca9
commit e542758add

View file

@ -34,14 +34,14 @@ plan tests => 21;
# "sqlite_unprepared_statements" attributes.
my $dbh = connect_ok(
RaiseError => 1,
sqlite_allows_multiple_statements => 1,
sqlite_allow_multiple_statements => 1,
);
ok $dbh->{sqlite_allows_multiple_statements}, "allows multiple statements";
ok $dbh->{sqlite_allow_multiple_statements}, "allows multiple statements";
eval { $dbh->do(q/
create table foo (id integer);
insert into foo (id) values (1);
insert into foo (id) values (2);
/, { sqlite_allows_multiple_statements => 1 })};
/, { sqlite_allow_multiple_statements => 1 })};
ok !$@, "do succeeds anyway";
diag $@ if $@;
@ -54,9 +54,9 @@ plan tests => 21;
# Do it more explicitly
my $dbh = connect_ok(
RaiseError => 1,
sqlite_allows_multiple_statements => 1,
sqlite_allow_multiple_statements => 1,
);
ok $dbh->{sqlite_allows_multiple_statements}, "allows multiple statements";
ok $dbh->{sqlite_allow_multiple_statements}, "allows multiple statements";
my $statement = q/
create table foo (id integer);
insert into foo (id) values (1);
@ -83,9 +83,9 @@ plan tests => 21;
# Placeholders
my $dbh = connect_ok(
RaiseError => 1,
sqlite_allows_multiple_statements => 1,
sqlite_allow_multiple_statements => 1,
);
ok $dbh->{sqlite_allows_multiple_statements}, "allows multiple statements";
ok $dbh->{sqlite_allow_multiple_statements}, "allows multiple statements";
eval { $dbh->do(q/
create table foo (id integer);
insert into foo (id) values (?);
@ -103,9 +103,9 @@ plan tests => 21;
# Do it more explicitly
my $dbh = connect_ok(
RaiseError => 1,
sqlite_allows_multiple_statements => 1,
sqlite_allow_multiple_statements => 1,
);
ok $dbh->{sqlite_allows_multiple_statements}, "allows multiple statements";
ok $dbh->{sqlite_allow_multiple_statements}, "allows multiple statements";
my $statement = q/
create table foo (id integer);
insert into foo (id) values (?);