Files
email-tracker/external/duckdb/test/sql/pragma/test_enable_profile.test
2025-10-24 19:21:19 -05:00

33 lines
758 B
SQL

# 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