should be it
This commit is contained in:
32
external/duckdb/test/sql/pragma/test_enable_profile.test
vendored
Normal file
32
external/duckdb/test/sql/pragma/test_enable_profile.test
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
# name: test/sql/pragma/test_enable_profile.test
|
||||
# description: Test PRAGMA enable_profiling parsing
|
||||
# group: [pragma]
|
||||
|
||||
# enable profiling cannot be called
|
||||
statement error
|
||||
PRAGMA enable_profiling()
|
||||
----
|
||||
Parser Error: syntax error at or near ")"
|
||||
|
||||
|
||||
statement error
|
||||
PRAGMA enable_profiling='unsupported'
|
||||
----
|
||||
Parser Error: Unrecognized print format unsupported, supported formats: [json, query_tree, query_tree_optimizer, no_output]
|
||||
|
||||
statement error
|
||||
PRAGMA profiling_output
|
||||
----
|
||||
|
||||
# select the location of where to save the profiling output (instead of printing to stdout)
|
||||
statement ok
|
||||
PRAGMA profiling_output='test.json'
|
||||
|
||||
# but we can clear it again
|
||||
statement ok
|
||||
PRAGMA profiling_output=''
|
||||
|
||||
# enable and disable profiling
|
||||
statement ok
|
||||
PRAGMA disable_profiling
|
||||
|
||||
Reference in New Issue
Block a user