should be it
This commit is contained in:
32
external/duckdb/test/sql/tpch/dbgen_readonly.test
vendored
Normal file
32
external/duckdb/test/sql/tpch/dbgen_readonly.test
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
# name: test/sql/tpch/dbgen_readonly.test
|
||||
# description: Test that dbgen respects read-only mode
|
||||
# group: [tpch]
|
||||
|
||||
require tpch
|
||||
|
||||
require skip_reload
|
||||
|
||||
load __TEST_DIR__/test_dbgen_ro.db
|
||||
|
||||
statement ok
|
||||
CREATE TABLE tbl (i INTEGER);
|
||||
|
||||
load __TEST_DIR__/test_dbgen_ro.db readonly
|
||||
|
||||
statement error
|
||||
CALL dbgen(sf=0);
|
||||
----
|
||||
read-only
|
||||
|
||||
load
|
||||
|
||||
statement ok
|
||||
ATTACH '__TEST_DIR__/test_dbgen_ro.db' AS dbgentest (READ_ONLY)
|
||||
|
||||
statement error
|
||||
CALL dbgen(sf=0, catalog='dbgentest');
|
||||
----
|
||||
read-only
|
||||
|
||||
statement ok
|
||||
CALL dbgen(sf=0);
|
||||
Reference in New Issue
Block a user