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,68 @@
# name: test/extension/load_extension.test
# description: Try loading a shared object with an extension
# group: [extension]
require notmingw
require skip_reload
require allow_unsigned_extensions
statement ok
PRAGMA enable_verification
statement error
LOAD 'asdf';
----
<REGEX>:IO Error: Extension.*not found.*
statement error
LOAD 'Makefile';
----
<REGEX>:IO Error: Extension.*not found.*
statement error
LOAD NULL;
----
<REGEX>:Parser Error: syntax error.*
statement ok
LOAD '__BUILD_DIRECTORY__/test/extension/loadable_extension_demo.duckdb_extension';
query I
SELECT extension_version FROM duckdb_extensions() WHERE extension_name = 'loadable_extension_demo';
----
default-version
query I
SELECT hello('World');
----
10
query I
QUACK QUACK QUACK
----
QUACK
QUACK
QUACK
query I
quACk QUaCk
----
QUACK
QUACK
statement error
QUAC
----
<REGEX>:Parser Error: Did you mean.*
statement error
QUACK NOT QUACK
----
<REGEX>:Parser Error: This is not a quack.*
query I
SELECT contains(loaded_extensions(), 'loadable_extension_demo')
----
true