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
CREATETABLEIF NOT EXISTS posts (
id BIGSERIALPRIMARY KEY,
title TEXTNOT NULL
);
The rust part
let title = vec!["A","B"];let posts = sqlx::query(r#" SELECT * FROM posts WHERE title NOT IN ($1);"#).bind(title).map( || {...}).fetch_all(&db_pool).await?;
The error output:
Database(PgDatabaseError { severity: Error, code: "42883", message: "operator does not exist: text <> text[]", detail: None, hint:
Some("No operator matches the given name and argument type(s). You might need to add explicit type casts."), position:
Some(Original(46)), where: None, schema: None, table: None, column: None, data_type: None, constraint: None, file:
Some("parse_oper.c"), line: Some(721), routine: Some("op_error") })', src/grpc/command.rs:111:14,
How should I fix it ? Thank you !
The text was updated successfully, but these errors were encountered:
Table:
The rust part
The error output:
How should I fix it ? Thank you !
The text was updated successfully, but these errors were encountered: