| OLD | NEW |
| 1 # 2008 September 16 | 1 # 2008 September 16 |
| 2 # | 2 # |
| 3 # The author disclaims copyright to this source code. In place of | 3 # The author disclaims copyright to this source code. In place of |
| 4 # a legal notice, here is a blessing: | 4 # a legal notice, here is a blessing: |
| 5 # | 5 # |
| 6 # May you do good and not evil. | 6 # May you do good and not evil. |
| 7 # May you find forgiveness for yourself and forgive others. | 7 # May you find forgiveness for yourself and forgive others. |
| 8 # May you share freely, never taking more than you give. | 8 # May you share freely, never taking more than you give. |
| 9 # | 9 # |
| 10 #*********************************************************************** | 10 #*********************************************************************** |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 do_test selectC-1.14.2 { | 144 do_test selectC-1.14.2 { |
| 145 execsql { | 145 execsql { |
| 146 SELECT uppercaseconversionfunctionwithaverylongname(b) AS x | 146 SELECT uppercaseconversionfunctionwithaverylongname(b) AS x |
| 147 FROM t1 | 147 FROM t1 |
| 148 ORDER BY x DESC | 148 ORDER BY x DESC |
| 149 } | 149 } |
| 150 } {CCC AAA AAA} | 150 } {CCC AAA AAA} |
| 151 | 151 |
| 152 # The following query used to leak memory. Verify that has been fixed. | 152 # The following query used to leak memory. Verify that has been fixed. |
| 153 # | 153 # |
| 154 ifcapable trigger { | 154 ifcapable trigger&&compound { |
| 155 do_test selectC-2.1 { | 155 do_test selectC-2.1 { |
| 156 catchsql { | 156 catchsql { |
| 157 CREATE TABLE t21a(a,b); | 157 CREATE TABLE t21a(a,b); |
| 158 INSERT INTO t21a VALUES(1,2); | 158 INSERT INTO t21a VALUES(1,2); |
| 159 CREATE TABLE t21b(n); | 159 CREATE TABLE t21b(n); |
| 160 CREATE TRIGGER r21 AFTER INSERT ON t21b BEGIN | 160 CREATE TRIGGER r21 AFTER INSERT ON t21b BEGIN |
| 161 SELECT a FROM t21a WHERE a>new.x UNION ALL | 161 SELECT a FROM t21a WHERE a>new.x UNION ALL |
| 162 SELECT b FROM t21a WHERE b>new.x ORDER BY 1 LIMIT 2; | 162 SELECT b FROM t21a WHERE b>new.x ORDER BY 1 LIMIT 2; |
| 163 END; | 163 END; |
| 164 INSERT INTO t21b VALUES(6); | 164 INSERT INTO t21b VALUES(6); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 | 227 |
| 228 do_execsql_test selectC-4.2 { | 228 do_execsql_test selectC-4.2 { |
| 229 select a from (select distinct a, b from t_distinct_bug) | 229 select a from (select distinct a, b from t_distinct_bug) |
| 230 } {1 1 1} | 230 } {1 1 1} |
| 231 | 231 |
| 232 do_execsql_test selectC-4.3 { | 232 do_execsql_test selectC-4.3 { |
| 233 select a, udf() from (select distinct a, b from t_distinct_bug) | 233 select a, udf() from (select distinct a, b from t_distinct_bug) |
| 234 } {1 1 1 2 1 3} | 234 } {1 1 1 2 1 3} |
| 235 | 235 |
| 236 finish_test | 236 finish_test |
| OLD | NEW |