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
structVehicleVerify{
...
pubservice_kinds:Vec<ServiceKind>,// ServiceKind is a enum defined in the database}
in 0.12.15, the query builder output is: CAST("vehicle_verify"."service_kinds" AS text[]) AS "B_service_kinds". However in 1.0.1 it outputs: CAST("vehicle_verify"."service_kinds" AS "text[]") AS "B_service_kinds" notice the "text[]"
Description
in 0.12.15, the query builder output is:
CAST("vehicle_verify"."service_kinds" AS text[]) AS "B_service_kinds"
. However in 1.0.1 it outputs:CAST("vehicle_verify"."service_kinds" AS "text[]") AS "B_service_kinds"
notice the "text[]"Steps to Reproduce
Expected Behavior
Returning all the records
Actual Behavior
Got an error:
DbErr=Query(SqlxError(Database(PgDatabaseError { severity: Error, code: "42704", message: "type \"text[]\" does not exist", detail: None, hint: None, position: Some(Original(819)), where: None, schema: None, table: None, column: None, data_type: None, constraint: None, file: Some("parse_type.c"), line: Some(270), routine: Some("typenameType") })))
Reproduces How Often
Always
Workarounds
go back to 0.12.15 or write raw sql, I think
Reproducible Example
#2384
Versions
The text was updated successfully, but these errors were encountered: