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
CREATETYPEstatusAS ENUM ('passing', 'failing');
CREATETABLEIF NOT EXISTS audit_result (
id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
audit_id INTNOT NULL,
status status NOT NULL,
output TEXT,
when_run TIMESTAMPTZ
);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have an enum and table defined as such:
I have a matching enum defined in Rust:
When I try to do an insert on the
audit_result
table I get the an error:error returned from database: syntax error at or near "AS"
I'm doing the "AS", as suggested in #2321 because without returns this error:
unsupported type status for param #2
What am I doing wrong here?
Beta Was this translation helpful? Give feedback.
All reactions