should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
# fmt: off
from conftest import ShellTest
def test_temp_directory(shell):
test = (
ShellTest(shell)
.statement(".mode csv")
.statement("CREATE SEQUENCE id_seq;")
.statement("""
CREATE TABLE my_table (
id INTEGER DEFAULT nextval('id_seq'),
a INTEGER
);""")
.statement("ATTACH ':memory:' AS s1;")
.statement("CREATE TABLE s1.tbl AS FROM range(2000000);")
.statement("INSERT INTO my_table (a) SELECT * FROM s1.tbl;")
.statement("INSERT INTO my_table (a) SELECT * FROM s1.tbl;")
.statement("INSERT INTO my_table (a) SELECT * FROM s1.tbl;")
.statement("INSERT INTO my_table (a) SELECT * FROM s1.tbl;")
.statement("INSERT INTO my_table (a) SELECT * FROM s1.tbl;")
.statement("INSERT INTO my_table (a) SELECT * FROM s1.tbl;")
.statement("INSERT INTO my_table (a) SELECT * FROM s1.tbl;")
.statement("INSERT INTO my_table (a) SELECT * FROM s1.tbl;")
.statement("INSERT INTO my_table (a) SELECT * FROM s1.tbl;")
.statement("INSERT INTO my_table (a) SELECT * FROM s1.tbl;")
)
test = test.statement("select count(*) from my_table")
result = test.run()
result.check_stdout("20000000")
# fmt: on