diff options
author | drh <drh@noemail.net> | 2015-04-15 04:20:58 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-04-15 04:20:58 +0000 |
commit | 311efc70a74a01d22b4d90c87490cda41b0b110a (patch) | |
tree | 1d671c67dafd43302537a9c5b4266f68355bc3c8 /test | |
parent | 126a6e260cda6446d509897d2a32097a5e63dad3 (diff) | |
download | sqlite-311efc70a74a01d22b4d90c87490cda41b0b110a.tar.gz sqlite-311efc70a74a01d22b4d90c87490cda41b0b110a.zip |
Add a test case for what was formerly thought to be an unreachable condition:
when the LHS of an OR operator contains an error and the RHS contains an IN
operator.
FossilOrigin-Name: 3872742591add4e94033484c2844e7d7ab69674b
Diffstat (limited to 'test')
-rw-r--r-- | test/in.test | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/in.test b/test/in.test index 515e598c1..de38c2245 100644 --- a/test/in.test +++ b/test/in.test @@ -615,6 +615,12 @@ do_test in-13.14 { } } {} +do_test in-13.15 { + catchsql { + SELECT 0 WHERE (SELECT 0,0) OR (0 IN (1,2)); + } +} {1 {only a single result allowed for a SELECT that is part of an expression}} + do_test in-13.X { db nullvalue "" |