summaryrefslogtreecommitdiffstats
path: root/test/shell5.test
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 14:07:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 14:07:37 +0000
commitde1caa20c41f730e54fb6974ba7821fe48816e40 (patch)
tree4702bdab12e2b6f51bef05af9f8d8854d2e1b7e8 /test/shell5.test
parentAdding upstream version 3.45.1. (diff)
downloadsqlite3-upstream/3.45.2.tar.xz
sqlite3-upstream/3.45.2.zip
Adding upstream version 3.45.2.upstream/3.45.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/shell5.test')
-rw-r--r--test/shell5.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/shell5.test b/test/shell5.test
index 39018a0..20f2ba2 100644
--- a/test/shell5.test
+++ b/test/shell5.test
@@ -570,4 +570,18 @@ SELECT * FROM t1;}
} {0 { 1 = あい
2 = うえお}}
+# 2024-03-11 https://sqlite.org/forum/forumpost/ca014d7358
+# Import into a table that contains computed columns.
+#
+do_test shell5-7.1 {
+ set out [open shell5.csv w]
+ fconfigure $out -translation lf
+ puts $out {aaa|bbb}
+ close $out
+ forcedelete test.db
+ catchcmd :memory: {CREATE TABLE t1(a TEXT, b TEXT, c AS (a||b));
+.import shell5.csv t1
+SELECT * FROM t1;}
+} {0 aaa|bbb|aaabbb}
+
finish_test