You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let query = format!("SELECT * FROM {} WHERE is_deleted = FALSE AND state = $1", Self::TABLE);
let query = sqlx::query_as(&query).bind(DictState::Usable);
let result = mm.dbx().fetch_all(query).await?;
When executing the above SQL, when there is data in the table, the query will not report an error. When there is no data in the table, the following errors will be initially selected:
Sqlx(Database(PgDatabaseError { severity: Error, code: "42704", message: "type "dict_state" does not exist", detail: None, hint: None, position: None, where: None, schema: None, table: None, column: None, data_type: None, constraint: None, file: Some("parse_type.c"), line: Some(802), routine: Some("parseTypeString") }))
Info
SQLx version: 0.7.4
SQLx features enabled: macros,runtime-tokio-native-tls,runtime-tokio,postgres,uuid,chrono,
Database server and version: Postgres
Operating system: Mac
rustc --version: 1.77.2
The text was updated successfully, but these errors were encountered:
Bug Description
let query = format!("SELECT * FROM {} WHERE is_deleted = FALSE AND state = $1", Self::TABLE);
let query = sqlx::query_as(&query).bind(DictState::Usable);
let result = mm.dbx().fetch_all(query).await?;
When executing the above SQL, when there is data in the table, the query will not report an error. When there is no data in the table, the following errors will be initially selected:
Sqlx(Database(PgDatabaseError { severity: Error, code: "42704", message: "type "dict_state" does not exist", detail: None, hint: None, position: None, where: None, schema: None, table: None, column: None, data_type: None, constraint: None, file: Some("parse_type.c"), line: Some(802), routine: Some("parseTypeString") }))
Info
rustc --version
: 1.77.2The text was updated successfully, but these errors were encountered: