sqlite icon indicating copy to clipboard operation
sqlite copied to clipboard

Statement hangs up wiht UPSERT clause on Windows

Open leirn opened this issue 1 year ago • 1 comments

Using sqlite version 0.32.0 Windows 11 rustc 1.75.0

I am trying to prepare a statement with an UPSERT clause in it. Connection.prepare(Statement); hangs up and never returns.

let connection = sqlite::open(":memory:").expect(ERROR_SQLITE_ACCESS);
let query = "UPSERT INTO data_last_update (file, sha, date) VALUES (?, ?, unixepoch())";
let mut statement = connection .prepare(query)?;
println!("Here");

The println! is never reached. If I replace UPSERT with INSERT, everything works fine.

There are no version of SQLite installed on the computer.

I also read #70 and tried to apply sqlite3-sys or sqlite3-src with no success.

leirn avatar Jan 16 '24 11:01 leirn

Hello, I think it is unrelated to this crate. It is likely due to SQLite itself. You have tried with bundled, right?

IvanUkhov avatar Jan 16 '24 13:01 IvanUkhov

I close this as stale.

IvanUkhov avatar Apr 21 '24 16:04 IvanUkhov