X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F05in_between.t;h=00fbd210d4a38f59ce597b3221130e28b59e527e;hb=a5f91febe5c3b54e262891687517e89c62d338cc;hp=fc3aa1d231e361f722467cdec212d45da4bd03cc;hpb=187f46dae67239249b4ca6b315374bf184775459;p=scpubgit%2FQ-Branch.git diff --git a/t/05in_between.t b/t/05in_between.t index fc3aa1d..00fbd21 100644 --- a/t/05in_between.t +++ b/t/05in_between.t @@ -174,6 +174,17 @@ my @in_between_tests = ( bind => [], test => '-in multi-line subquery test', }, + + # check that the outer paren opener is not too agressive + # note: this syntax *is not legal* on SQLite (maybe others) + # see end of https://rt.cpan.org/Ticket/Display.html?id=99503 + { + where => { foo => { -in => \ '(SELECT 1) UNION (SELECT 2)' } }, + stmt => 'WHERE foo IN ( (SELECT 1) UNION (SELECT 2) )', + bind => [], + test => '-in paren-opening works on balanced pairs only', + }, + { where => { customer => { -in => \[