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
When creating an enum, and sql statements, the output of python adds double quotes which fails to execute.
Example
CREATE TYPE contact_type AS ENUM ('email', 'phone);
CREATE TABLE IF NOT EXISTS identity (
ID BIGSERIAL PRIMARY KEY,
Username VARCHAR(128),
ContactType contact_type
);
SELECT i.Username, i.ID
FROM identity as i
WHERE i.ContactType = 'email';
The above changes single quotes to double quotes, which fails to execute.
Originally reported here: sqlc-dev/sqlc#2007
The text was updated successfully, but these errors were encountered: