X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F20injection_guard.t;h=6a317bdf44f6762dfe010dab6a4a90d7830db271;hb=170e6c33a3262ece53aa79249d9a8d1149bc4c35;hp=ee1b8251ac4434578163867b32a7a559b8df6ddb;hpb=b6251592f2832d5353d37bd05e522091f20ff38f;p=dbsrgits%2FSQL-Abstract.git diff --git a/t/20injection_guard.t b/t/20injection_guard.t index ee1b825..6a317bd 100644 --- a/t/20injection_guard.t +++ b/t/20injection_guard.t @@ -12,19 +12,19 @@ throws_ok( sub { $sqla->select( 'foo', [ 'bar' ], - { 'boby; tables' => 'bar' }, + { 'bobby; tables' => 'bar' }, ); }, qr/Possible SQL injection attempt/, 'Injection thwarted on unquoted column' ); my ($sql, @bind) = $sqla_q->select( 'foo', [ 'bar' ], - { 'boby; tables' => 'bar' }, + { 'bobby; tables' => 'bar' }, ); is_same_sql_bind ( $sql, \@bind, - 'SELECT "bar" FROM "foo" WHERE ( "boby; tables" = ? )', + 'SELECT "bar" FROM "foo" WHERE ( "bobby; tables" = ? )', [ 'bar' ], 'Correct sql with quotes on' );