summaryrefslogtreecommitdiffstats
path: root/test/shell5.test
diff options
context:
space:
mode:
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