Skip to content
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

Missing comments on delete, update and insert for pg dialect #5793

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

blaisn
Copy link

@blaisn blaisn commented Jan 25, 2024

Issue 5738 pointed out that knex does not integrate comments in INSERT/UPDATE/DELETE .
The fix was coded for mysql and merged on Nov 27, 2023.
The present PR fixes the same issue for "pg" dialect.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Humm.. Should I merge this file? Probably not.

}

// is used if the an array with multiple empty values supplied

// Compiles an `insert` query, allowing for multiple
// inserts using a single query statement.
insert() {
let sql = super.insert();
let sql = this.comments() + ' ' + super.insert();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use `` here as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants