I have found these related issues/pull requests
I could not find any existing examples.
Description
When passing a query with persistent: false that contains a reference to a custom Postgres data type, a spurious 26000 unnamed prepared statement does not exist error is encountered on the first try. Subsequent retries work.
Reproduction steps
I have reproduced this in https://github.com/patrickt/sqlx-bug and can confirm it returns a 26000 error in sqlx-0.9 but not in 0.8.
- Check out the repo
DATABASE_URL=<your url here> cargo run
- Observe the error code 26000 in the first statement
- Change cargo.toml to pull in sqlx 0.8
- Run again, observe that you get None rather than an error
SQLx version
0.9
Enabled SQLx features
postgres, runtime-tokio
Database server and version
Postgres 17
Operating system
macOS, Linux
Rust version
1.9.6
I have found these related issues/pull requests
I could not find any existing examples.
Description
When passing a query with
persistent: falsethat contains a reference to a custom Postgres data type, a spurious 26000unnamed prepared statement does not existerror is encountered on the first try. Subsequent retries work.Reproduction steps
I have reproduced this in https://github.com/patrickt/sqlx-bug and can confirm it returns a 26000 error in sqlx-0.9 but not in 0.8.
DATABASE_URL=<your url here> cargo runSQLx version
0.9
Enabled SQLx features
postgres, runtime-tokio
Database server and version
Postgres 17
Operating system
macOS, Linux
Rust version
1.9.6