-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PostgresError: syntax error at or near "\" #39
Labels
bug
Something isn't working
Comments
Hi! Unfortunately, during the transition from the previous to the new structure, |
I'm facing the same problem here. Waiting for a fix. |
bander-saeed94
added a commit
to bander-saeed94/deno-nessie
that referenced
this issue
Jun 1, 2020
bander-saeed94
added a commit
to bander-saeed94/deno-nessie
that referenced
this issue
Jun 1, 2020
@bander-saeed94 @Leonardo-Rocha version 0.5.1 is now released which fixes this issue 👍 |
Working just fine now. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When Running migrate with a create table that has timestampsTz().
The error:
Error:CREATE OR REPLACE FUNCTION trigger_set_timestamp() RETURNS TRIGGER AS $$ BEGIN NEW.updated_at = now(); RETURN NEW; END; $$ language 'plpgsql';CREATE TABLE tbl_user (id uuid PRIMARY KEY, username varchar (25) not null UNIQUE, email varchar (35) default null UNIQUE, phone_number numeric (12) default null UNIQUE, fullname varchar (40), password varchar (100), email_confirmed boolean default false, phone_number_confirmed boolean default false, created_at timestamptz (0) default current_timestamp, updated_at timestamptz (0) default current_timestamp); DROP TRIGGER IF EXISTS set_timestamp on tbl_user; CREATE TRIGGER set_timestamp BEFORE UPDATE ON tbl_user FOR EACH ROW EXECUTE PROCEDURE trigger_set_timestamp();INSERT INTO nessie_migrations (file_name) VALUES ('1590656398438-create-user-table.ts');
PostgresError: syntax error at or near "\"
at ClientPostgreSQL.query (https://deno.land/x/nessie/clients/ClientPostgreSQL.ts:50:13)
at async ClientPostgreSQL.migrate (https://deno.land/x/nessie/clients/AbstractClient.ts:83:9)
at async ClientPostgreSQL.migrate (https://deno.land/x/nessie/clients/ClientPostgreSQL.ts:62:5)
at async run (https://deno.land/x/nessie/cli.ts:62:11)
The text was updated successfully, but these errors were encountered: