let conn = Builder::new_remote("http://localhost:8867".into(), "".into())...;
conn.execute_batch(r#"CREATE TABLE IF NOT EXISTS example (id INTEGER NOT NULL PRIMARY KEY);"#)...;
conn.query(r#"INSERT INTO example DEFAULT VALUES RETURNING *;"#, ())
.await
.unwrap();
// Error
assert_eq!(conn.changes(), 1);
// or
let mut stam = conn
.prepare(r#"INSERT INTO example DEFAULT VALUES RETURNING *;"#)
.await
.unwrap();
stam.query(()).await.unwrap();
// Error
assert_eq!(conn.changes(), 1);
assertion `left == right` failed
left: 0
right: 1
It seems that only the query method of the remote connection has an issue; there are no problems whatsoever when using a local connection.
It seems that only the
query
method of theremote connection
has an issue; there are no problems whatsoever when using a local connection.