diff options
author | drh <drh@noemail.net> | 2014-02-17 15:40:19 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2014-02-17 15:40:19 +0000 |
commit | 8be09304b79dd5a2d5f53ca00b01ba9fcf81f21d (patch) | |
tree | 60031183de00302135f0be52fbb91035318620cb /test | |
parent | 7591051a73d7257550a8ad410fd4a94db1195b55 (diff) | |
download | sqlite-8be09304b79dd5a2d5f53ca00b01ba9fcf81f21d.tar.gz sqlite-8be09304b79dd5a2d5f53ca00b01ba9fcf81f21d.zip |
Add a test case for OP_SoftNull.
FossilOrigin-Name: f29d194e03d6bcc78bf883b77e591dbccada02f0
Diffstat (limited to 'test')
-rw-r--r-- | test/insert.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/insert.test b/test/insert.test index 83168122a..776bce114 100644 --- a/test/insert.test +++ b/test/insert.test @@ -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 |