| OLD | NEW |
| 1 # 2007 June 26 | 1 # 2007 June 26 |
| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 } {{b c} {} integerhidden hidden1} | 124 } {{b c} {} integerhidden hidden1} |
| 125 | 125 |
| 126 do_test vtabA-2.3 { | 126 do_test vtabA-2.3 { |
| 127 analyse_parse {(a HiDden, b HIDDEN, c hidden)} {a b c} | 127 analyse_parse {(a HiDden, b HIDDEN, c hidden)} {a b c} |
| 128 } {{} {} {} {}} | 128 } {{} {} {} {}} |
| 129 | 129 |
| 130 do_test vtabA-2.4 { | 130 do_test vtabA-2.4 { |
| 131 analyse_parse {(a whatelse can i hidden test, b HIDDEN hidden)} {a b} | 131 analyse_parse {(a whatelse can i hidden test, b HIDDEN hidden)} {a b} |
| 132 } {{} {whatelse can i test} hidden} | 132 } {{} {whatelse can i test} hidden} |
| 133 | 133 |
| 134 |
| 135 # Ticket [d2f02d37f52bfe23e421f2c60fbb8586ac76ff01]: |
| 136 # assertion failure on an UPDATE involving two virtual tables. |
| 137 # |
| 138 do_test vtabA-3.1 { |
| 139 db eval { |
| 140 DROP TABLE IF EXISTS t1; |
| 141 DROP TABLE IF EXISTS t2; |
| 142 CREATE TABLE t1(a,b); |
| 143 INSERT INTO t1 VALUES(1,2); |
| 144 CREATE TABLE t2(x,y); |
| 145 INSERT INTO t2 VALUES(3,4); |
| 146 CREATE VIRTUAL TABLE vt1 USING echo(t1); |
| 147 CREATE VIRTUAL TABLE vt2 USING echo(t2); |
| 148 UPDATE vt2 SET x=(SELECT a FROM vt1 WHERE b=2) WHERE y=4; |
| 149 SELECT * FROM t2; |
| 150 } |
| 151 } {1 4} |
| 152 |
| 134 finish_test | 153 finish_test |
| OLD | NEW |