aboutsummaryrefslogtreecommitdiff
path: root/test/resolver01.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/resolver01.test')
-rw-r--r--test/resolver01.test10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/resolver01.test b/test/resolver01.test
index 7d95a2132..59bb3c021 100644
--- a/test/resolver01.test
+++ b/test/resolver01.test
@@ -11,10 +11,12 @@
#
# This file tests features of the name resolver (the component that
# figures out what identifiers in the SQL statement refer to) that
-# were fixed by ticket [2500cdb9be]
+# were fixed by ticket [2500cdb9be].
#
# See also tickets [1c69be2daf] and [f617ea3125] from 2013-08-14.
#
+# Also a fuzzer-discovered problem on 2015-04-23.
+#
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -201,6 +203,12 @@ do_execsql_test resolver01-6.3 {
GROUP BY lower(name);
} {1 {} 1 {}}
+do_execsql_test resolver01-7.1 {
+ SELECT 2 AS x WHERE (SELECT x AS y WHERE 3>y);
+} {2}
+do_execsql_test resolver01-7.2 {
+ SELECT 2 AS x WHERE (SELECT x AS y WHERE 1>y);
+} {}