We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is my insert query
INSERT INTO user_books( user_id, status, books, updated_ts ) VALUES (:user_id, :status, :books, NOW()) ON CONFLICT(user_id) DO UPDATE SET books = EXCLUDED.books, updated_ts = NOW() WHERE user_books.user_id = EXCLUDED.user_id
This is the error pq: syntax error at or near \"ON\"
pq: syntax error at or near \"ON\"
Query generated:
INSERT INTO user_books( user_id, status, books, updated_ts ) VALUES ($1, $2, $3, NOW(),($4, $5, $6, NOW(),($7, $8, $9, NOW()) ON CONFLICT(user_id) DO UPDATE SET books = EXCLUDED.books, updated_ts = NOW() WHERE user_books.user_id = EXCLUDED.user_id
theres missing bracket between each value to insert
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is my insert query
This is the error
pq: syntax error at or near \"ON\"
Query generated:
theres missing bracket between each value to insert
The text was updated successfully, but these errors were encountered: