generated from duckdb/extension-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
85 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,6 @@ Driver = db2 | |
|
||
[postgres odbc_test] | ||
Driver = postgres | ||
|
||
[mariadb odbc_test] | ||
Driver = mariadb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,6 @@ Driver = ${DB2_DRIVER_PATH} | |
|
||
[postgres] | ||
Driver = ${POSTGRES_DRIVER_PATH} | ||
|
||
[mariadb] | ||
Driver = ${MARIADB_DRIVER_PATH} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,31 @@ | ||
# # name: test/sql/odbc_scan_mariadb.test | ||
# # description: test odbc_scanner extension | ||
# # group: [odbc_scan] | ||
# | ||
# # Before we load the extension, this will fail | ||
# statement error | ||
# SELECT * FROM odbc_scan( | ||
# 'Driver=/opt/homebrew/Cellar/psqlodbc/15.00.0000/lib/psqlodbca.so;Server=localhost;Database=odbc_scanner_duckdb_extension_test;Uid=mariadb;Pwd=password;Port=5432', | ||
# 'db2inst1', | ||
# 'people' | ||
# ); | ||
# ---- | ||
# Catalog Error: Table Function with name odbc_scan does not exist! | ||
# | ||
# # Require statement will ensure this test is run with this extension loaded | ||
# require odbc_scanner | ||
# | ||
# # Confirm the extension works | ||
# query I | ||
# SELECT * FROM odbc_scan( | ||
# 'Driver=/opt/homebrew/Cellar/psqlodbc/15.00.0000/lib/psqlodbca.so;Server=localhost;Database=odbc_scanner_duckdb_extension_test;Uid=mariadb;Pwd=password;Port=5432', | ||
# 'db2inst1', | ||
# 'people' | ||
# ); | ||
# ---- | ||
# Lebron James | ||
# Spiderman | ||
# Wonder Woman | ||
# David Bowie | ||
# name: test/sql/odbc_scan_mariadb.test | ||
# description: test odbc_scanner extension | ||
# group: [odbc_scan] | ||
|
||
# Before we load the extension, this will fail | ||
statement error | ||
SELECT * FROM odbc_scan( | ||
'DSN={mariadb odbc_test};Server=localhost;Database=odbc_test;Uid=mariadb;Pwd=password;Port=3307', | ||
'', | ||
'people' | ||
) | ||
ORDER BY salary ASC; | ||
---- | ||
Catalog Error: Table Function with name odbc_scan does not exist! | ||
|
||
# Require statement will ensure this test is run with this extension loaded | ||
require odbc_scanner | ||
|
||
# Confirm the extension works | ||
query III | ||
SELECT * FROM odbc_scan( | ||
'DSN={mariadb odbc_test};Server=localhost;Database=odbc_test;Uid=mariadb;Pwd=password;Port=3307', | ||
'', | ||
'people' | ||
) | ||
ORDER BY salary ASC; | ||
---- | ||
Lebron James 37 100.1 | ||
Spiderman 25 200.2 | ||
Wonder Woman 21 300.3 | ||
David Bowie 69 400.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters