Skip to content

Commit

Permalink
Tweak tests for ignore non-jsonb capable things
Browse files Browse the repository at this point in the history
  • Loading branch information
turnstep committed Feb 12, 2018
1 parent 3812eb3 commit 16dd991
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions t/12placeholders.t
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,14 @@ checkquote('three');
checkquote('four');

## Github issue #33
$SQL = q{ SELECT '{"a":1}'::jsonb \? 'abc' AND 123=$1};
my $sth;
for (1..300) {
$sth = $dbh->prepare($SQL);
$sth->execute(123);
if ($dbh->{pg_server_version} >= 90400) {

$SQL = q{ SELECT '{"a":1}'::jsonb \? 'abc' AND 123=$1};
for (1..300) {
$sth = $dbh->prepare($SQL);
$sth->execute(123);
}
}

$t='Fetch returns the correct quoted value';
Expand Down

0 comments on commit 16dd991

Please sign in to comment.