1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Add a test case for OP_SoftNull.

FossilOrigin-Name: f29d194e03d6bcc78bf883b77e591dbccada02f0
This commit is contained in:
drh
2014-02-17 15:40:19 +00:00
parent 7591051a73
commit 8be09304b7
3 changed files with 17 additions and 7 deletions

View File

@ -403,6 +403,16 @@ ifcapable compound {
} {1 {all VALUES must have the same number of terms}}
}
# Need for the OP_SoftNull opcode
#
do_execsql_test insert-11.1 {
CREATE TABLE t11a AS SELECT '123456789' AS x;
CREATE TABLE t11b (a INTEGER PRIMARY KEY, b, c);
INSERT INTO t11b SELECT x, x, x FROM t11a;
SELECT quote(a), quote(b), quote(c) FROM t11b;
} {123456789 '123456789' '123456789'}
integrity_check insert-99.0
finish_test