Skip to content

Commit ff0883e

Browse files
committed
Update DuckDB for proper error messages, closes #141
1 parent ecf06ac commit ff0883e

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

lib/adbc_driver.ex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ defmodule Adbc.Driver do
66

77
# == GENERATED CONSTANTS ==
88

9-
# Generated by update.exs at 2025-09-09T06:39:30. Do not change manually.
9+
# Generated by update.exs at 2025-10-24T12:43:16. Do not change manually.
1010
@generated_driver_versions %{
11-
duckdb: "1.3.2",
11+
duckdb: "1.4.1",
1212
sqlite: "1.7.0",
1313
postgresql: "1.7.0",
1414
flightsql: "1.7.0",
@@ -19,25 +19,25 @@ defmodule Adbc.Driver do
1919
duckdb: %{
2020
"aarch64-apple-darwin" => %{
2121
url:
22-
"https://github.com/duckdb/duckdb/releases/download/v1.3.2/libduckdb-osx-universal.zip"
22+
"https://github.com/duckdb/duckdb/releases/download/v1.4.1/libduckdb-osx-universal.zip"
2323
},
2424
"aarch64-linux-gnu" => %{
25-
url: "https://github.com/duckdb/duckdb/releases/download/v1.3.2/libduckdb-linux-arm64.zip"
25+
url: "https://github.com/duckdb/duckdb/releases/download/v1.4.1/libduckdb-linux-arm64.zip"
2626
},
2727
"aarch64-windows-msvc" => %{
2828
url:
29-
"https://github.com/duckdb/duckdb/releases/download/v1.3.2/libduckdb-windows-arm64.zip"
29+
"https://github.com/duckdb/duckdb/releases/download/v1.4.1/libduckdb-windows-arm64.zip"
3030
},
3131
"x86_64-apple-darwin" => %{
3232
url:
33-
"https://github.com/duckdb/duckdb/releases/download/v1.3.2/libduckdb-osx-universal.zip"
33+
"https://github.com/duckdb/duckdb/releases/download/v1.4.1/libduckdb-osx-universal.zip"
3434
},
3535
"x86_64-linux-gnu" => %{
36-
url: "https://github.com/duckdb/duckdb/releases/download/v1.3.2/libduckdb-linux-amd64.zip"
36+
url: "https://github.com/duckdb/duckdb/releases/download/v1.4.1/libduckdb-linux-amd64.zip"
3737
},
3838
"x86_64-windows-msvc" => %{
3939
url:
40-
"https://github.com/duckdb/duckdb/releases/download/v1.3.2/libduckdb-windows-amd64.zip"
40+
"https://github.com/duckdb/duckdb/releases/download/v1.4.1/libduckdb-windows-amd64.zip"
4141
}
4242
},
4343
sqlite: %{

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
defmodule Adbc.MixProject do
77
use Mix.Project
88

9-
@version "0.7.10-dev"
9+
@version "0.8.0-dev"
1010
@github_url "https://github.com/elixir-explorer/adbc"
1111

1212
def project do

test/adbc_test.exs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,13 @@ defmodule AdbcTest do
395395
%{db: db, conn: conn}
396396
end
397397

398+
test "error", %{conn: conn} do
399+
assert {:error, %Adbc.Error{} = error} =
400+
Adbc.Connection.query(conn, "SELECT * from $1", ["foo"])
401+
402+
assert Exception.message(error) =~ "Parser Error"
403+
end
404+
398405
test "decimal128", %{conn: conn} do
399406
d1 = Decimal.new("1.2345678912345678912345678912345678912")
400407
d2 = Decimal.new("-1.2345678912345678912345678912345678912")

update.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Mix.install([{:req, "~> 0.4"}])
1212
defmodule Update do
1313
# To update duckdb driver, just bump this version
1414
# https://github.com/duckdb/duckdb/releases/
15-
@duckdb_version "1.3.2"
15+
@duckdb_version "1.4.1"
1616

1717
# To update ADBC drivers, bump the tag and version accordingly
1818
# https://github.com/apache/arrow-adbc/releases

0 commit comments

Comments
 (0)