Closed glib-0 closed 1 month ago
I'm trying to compile the mssql_fdw wrapper on a Raspberry Pi 4 and encountering an issue when the compiler gets to supabase-wrappers.
error[E0308]: mismatched types --> supabase-wrappers/src/import_foreign_schema.rs:84:18 | | ret.push(command.as_pg_cstr()); | ---- ^^^^^^^^^^^^^^^^^^^^ expected `*mut i8`, found `*mut u8` | | | arguments to this method are incorrect | = note: expected raw pointer `*mut i8` found raw pointer `*mut u8`
cargo pgrx install --no-default-features --features pg15,mssql_fdw --release
Build completes
N/A
The return type of as_pg_cstr() changes based on the platform. I thought I had fixed that. The previous line should be let mut ret: PgList<ffi::c_char> = PgList::new();
as_pg_cstr()
let mut ret: PgList<ffi::c_char> = PgList::new();
Bug report
I'm trying to compile the mssql_fdw wrapper on a Raspberry Pi 4 and encountering an issue when the compiler gets to supabase-wrappers.
Describe the bug
To Reproduce
cargo pgrx install --no-default-features --features pg15,mssql_fdw --release
in ~/wrappers/wrappersExpected behavior
Build completes
Screenshots
N/A
System information
Additional context