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,54 @@
# name: test/sql/settings/test_lock_configuration.test
# description: Test lock configuration
# group: [settings]
statement ok
PRAGMA enable_verification
query I
SELECT current_setting('lock_configuration')
----
false
statement ok
SET memory_limit='8GB';
# nop
statement ok
RESET lock_configuration;
# nop
statement ok
SET lock_configuration=false;
statement ok
SET memory_limit='8GB';
# lock the config
statement ok
SET lock_configuration=true;
statement error
SET memory_limit='10GB';
----
configuration has been locked
statement error
SET lock_configuration=false;
----
configuration has been locked
statement error
RESET memory_limit;
----
configuration has been locked
statement error
RESET lock_configuration;
----
configuration has been locked
query I
SELECT current_setting('lock_configuration')
----
true