7 use DBIC::SqlMakerTest;
10 eval "use DBD::SQLite";
12 ? ( skip_all => 'needs DBD::SQLite for testing' )
18 my $schema = DBICTest->init_schema();
20 my $sql_maker = $schema->storage->sql_maker;
24 my ($sql, @bind) = $sql_maker->insert(
27 'day' => '2008-11-16',
28 'numbers' => [13, 21, 34, 55, 89]
34 q/INSERT INTO lottery (day, numbers) VALUES (?, ?)/,
35 [ ['day' => '2008-11-16'], ['numbers' => [13, 21, 34, 55, 89]] ],
36 'sql_maker passes arrayrefs in insert'
40 ($sql, @bind) = $sql_maker->update(
43 'day' => '2008-11-16',
44 'numbers' => [13, 21, 34, 55, 89]
50 q/UPDATE lottery SET day = ?, numbers = ?/,
51 [ ['day' => '2008-11-16'], ['numbers' => [13, 21, 34, 55, 89]] ],
52 'sql_maker passes arrayrefs in update'