Make resulting SQL work on MySQL
[dbsrgits/SQL-Abstract.git] / t / dbic / bulk-insert.t
CommitLineData
fda8a675 1use strict;
2use warnings;
3
4use Test::More;
5use DBIx::Class::Storage::Debug::PrettyPrint;
6
7my $cap;
8open my $fh, '>', \$cap;
9
10my $pp = DBIx::Class::Storage::Debug::PrettyPrint->new({
11 profile => 'none',
12 fill_in_placeholders => 1,
13 placeholder_surround => [qw(' ')],
14 show_progress => 0,
15});
16
17$pp->debugfh($fh);
18
19$pp->query_start('INSERT INTO self_ref_alias (alias, self_ref) VALUES ( ?, ? )', qw('__BULK_INSERT__' '1'));
20is(
21 $cap,
c4d7cfcf 22 qq{INSERT INTO self_ref_alias( alias, self_ref ) VALUES( ?, ? ) : '__BULK_INSERT__', '1'\n},
fda8a675 23 'SQL Logged'
24);
25
26done_testing;