5 use SQL::Abstract::Test import => ['is_same_sql_bind'];
9 eval "use DBD::SQLite";
11 ? ( skip_all => 'needs DBD::SQLite for testing' )
19 my $schema = DBICTest->init_schema();
21 my $sql_maker = $schema->storage->sql_maker;
25 skip "SQL::Abstract < 1.50 does not pass through arrayrefs", 2 if $SQL::Abstract::VERSION < 1.50;
27 my ($sql, @bind) = $sql_maker->insert(
30 'day' => '2008-11-16',
31 'numbers' => [13, 21, 34, 55, 89]
37 q/INSERT INTO lottery (day, numbers) VALUES (?, ?)/,
38 [ ['day' => '2008-11-16'], ['numbers' => [13, 21, 34, 55, 89]] ],
39 'sql_maker passes arrayrefs in insert'
43 ($sql, @bind) = $sql_maker->update(
46 'day' => '2008-11-16',
47 'numbers' => [13, 21, 34, 55, 89]
53 q/UPDATE lottery SET day = ?, numbers = ?/,
54 [ ['day' => '2008-11-16'], ['numbers' => [13, 21, 34, 55, 89]] ],
55 'sql_maker passes arrayrefs in update'