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

allow ignoring escape and quoting #221

Merged

Conversation

shedyfreak
Copy link
Contributor

@shedyfreak shedyfreak commented Oct 11, 2023

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

This PR allows the developer to take responsability of column names and table names correctness,
by correctness I mean no special characters and no postgres reserved keywords.

Benefits :

  • less run time for checking each byte for an invalid character,

  • more flexibility when the developer wants to ignore casing in his database columns and table names

User Case Description

In my case, the double quotes around table names and columns, make my query case sensitive to the casing of table names
and columns.

In my case, performance is crucial, avoiding going over bytes in the query, could be significant on the long run

Sorry, something went wrong.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@shedyfreak
Copy link
Contributor Author

Please mind, this is my first PR in an open source project :) if I missed anything let me know.

@shedyfreak shedyfreak changed the title allow ignoring escape allow ignoring escape and quoting Oct 11, 2023
@jinzhu jinzhu merged commit a7214f0 into go-gorm:master Oct 26, 2023
@jinzhu
Copy link
Member

jinzhu commented Oct 26, 2023

thank you for your first pr, lgtm ;)

PuneetPunamiya pushed a commit to PuneetPunamiya/postgres that referenced this pull request Jan 17, 2024
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