30 lines
688 B
SQL
30 lines
688 B
SQL
# name: test/extension/autoloading_encodings.test
|
|
# description: Test autoloading of encodings.
|
|
# group: [extension]
|
|
|
|
mode skip
|
|
|
|
require-env LOCAL_EXTENSION_REPO
|
|
|
|
statement ok
|
|
set autoload_known_extensions=false
|
|
|
|
statement ok
|
|
set autoinstall_known_extensions=false
|
|
|
|
statement error
|
|
FROM read_csv('data/csv/test/test.csv', encoding = 'shift_jis')
|
|
----
|
|
<REGEX>:.*Invalid Input Error.*You can try "INSTALL encodings; LOAD encodings".*
|
|
|
|
statement ok
|
|
set autoload_known_extensions=true
|
|
|
|
statement ok
|
|
set autoinstall_known_extensions=true
|
|
|
|
statement ok
|
|
set autoinstall_extension_repository='${LOCAL_EXTENSION_REPO}';
|
|
|
|
statement ok
|
|
FROM read_csv('data/csv/test/test.csv', encoding = 'shift_jis') |