diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml index 6268d4b2..2190032d 100644 --- a/.github/workflows/rust.yaml +++ b/.github/workflows/rust.yaml @@ -38,7 +38,7 @@ jobs: name: Download duckdb with: repository: "duckdb/duckdb" - tag: "v0.8.0" + tag: "v0.8.1" fileName: ${{ matrix.duckdb }} out-file-path: . diff --git a/Cargo.toml b/Cargo.toml index e5348aad..9f0f794a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "duckdb" -version = "0.8.0" +version = "0.8.1" authors = ["wangfenjin "] edition = "2021" description = "Ergonomic wrapper for DuckDB" @@ -81,7 +81,7 @@ tempdir = "0.3.7" [dependencies.libduckdb-sys] path = "libduckdb-sys" -version = "0.8.0" +version = "0.8.1" [package.metadata.docs.rs] features = [] diff --git a/libduckdb-sys/Cargo.toml b/libduckdb-sys/Cargo.toml index 8a5c4127..d3dfc62b 100644 --- a/libduckdb-sys/Cargo.toml +++ b/libduckdb-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libduckdb-sys" -version = "0.8.0" +version = "0.8.1" authors = ["wangfenjin "] edition = "2021" build = "build.rs" diff --git a/libduckdb-sys/duckdb-sources b/libduckdb-sys/duckdb-sources index e8e4cea5..6536a772 160000 --- a/libduckdb-sys/duckdb-sources +++ b/libduckdb-sys/duckdb-sources @@ -1 +1 @@ -Subproject commit e8e4cea5ec9d1a84c1f516d0f0674f8785a3e786 +Subproject commit 6536a772329002b05decbfc0a9d3f606e0ec7f55 diff --git a/libduckdb-sys/duckdb.tar.gz b/libduckdb-sys/duckdb.tar.gz index a9a7e1e3..2d7d8402 100644 Binary files a/libduckdb-sys/duckdb.tar.gz and b/libduckdb-sys/duckdb.tar.gz differ diff --git a/libduckdb-sys/src/bindgen_bundled_version.rs b/libduckdb-sys/src/bindgen_bundled_version.rs index 20b06d87..f35fb4c1 100644 --- a/libduckdb-sys/src/bindgen_bundled_version.rs +++ b/libduckdb-sys/src/bindgen_bundled_version.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.65.1 */ +/* automatically generated by rust-bindgen 0.66.0 */ #[repr(C)] #[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] @@ -95,9 +95,9 @@ pub const __DARWIN_UNIX03: u32 = 1; pub const __DARWIN_64_BIT_INO_T: u32 = 1; pub const __DARWIN_VERS_1050: u32 = 1; pub const __DARWIN_NON_CANCELABLE: u32 = 0; -pub const __DARWIN_SUF_64_BIT_INO_T: &[u8; 9usize] = b"$INODE64\0"; -pub const __DARWIN_SUF_1050: &[u8; 6usize] = b"$1050\0"; -pub const __DARWIN_SUF_EXTSN: &[u8; 14usize] = b"$DARWIN_EXTSN\0"; +pub const __DARWIN_SUF_64_BIT_INO_T: &[u8; 9] = b"$INODE64\0"; +pub const __DARWIN_SUF_1050: &[u8; 6] = b"$1050\0"; +pub const __DARWIN_SUF_EXTSN: &[u8; 14] = b"$DARWIN_EXTSN\0"; pub const __DARWIN_C_ANSI: u32 = 4096; pub const __DARWIN_C_FULL: u32 = 900000; pub const __DARWIN_C_LEVEL: u32 = 900000; diff --git a/libduckdb-sys/upgrade.sh b/libduckdb-sys/upgrade.sh index 1bee64e3..744cb628 100755 --- a/libduckdb-sys/upgrade.sh +++ b/libduckdb-sys/upgrade.sh @@ -10,10 +10,11 @@ export DUCKDB_LIB_DIR="$SCRIPT_DIR/duckdb" export DU_INCLUDE_DIR="$DUCKDB_LIB_DIR" # Download and extract amalgamation -DUCKDB_VERSION=v0.8.0 +DUCKDB_VERSION=v0.8.1 git submodule update --init --checkout cd "$SCRIPT_DIR/duckdb-sources" || { echo "fatal error" >&2; exit 1; } -git checkout "$DUCKDB_VERSION" +git fetch +git switch "$DUCKDB_VERSION" cd "$SCRIPT_DIR" || { echo "fatal error" >&2; exit 1; } python3 "$SCRIPT_DIR/update_sources.py" diff --git a/src/vtab/excel.rs b/src/vtab/excel.rs index 3f2cdb66..8fd8f9df 100644 --- a/src/vtab/excel.rs +++ b/src/vtab/excel.rs @@ -191,7 +191,7 @@ impl VTab for ExcelVTab { #[cfg(test)] mod test { use crate::{vtab::excel::ExcelVTab, Connection, Result}; - use arrow::array::{Array, Date32Array, Float64Array, LargeStringArray}; + use arrow::array::{Array, Date32Array, Float64Array, StringArray}; use std::error::Error; #[test] @@ -215,7 +215,7 @@ mod test { let mut arr = stmt.query_arrow([])?; let rb = arr.next().expect("no record batch"); assert_eq!(rb.num_rows(), 4); - let column = rb.column(0).as_any().downcast_ref::().unwrap(); + let column = rb.column(0).as_any().downcast_ref::().unwrap(); assert_eq!(column.len(), 4); assert_eq!(column.value(0), "Action"); assert_eq!(column.value(1), "Adventure");