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

Escape column name #168

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
#159 fixed case-sensitive test error
On linux, databases tend to be case-sensitive with their tests.
This test failed in part because the column is `userId` not `userid`
  • Loading branch information
PhilippMDoerner committed Aug 22, 2022
commit 5638632b4a111c889f639a6c2d5d03bf7f1130ba
2 changes: 1 addition & 1 deletion tests/postgres/tfkpragma.nim
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ suite "``fk`` pragma":
for inpCustomer in inpCustomers.mitems:
dbConn.insert inpCustomer

dbConn.select(outCustomers, """"userid" = $1""", userA.id)
dbConn.select(outCustomers, """"userId" = $1""", userA.id)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

An example for sudden case-sensitivity, though that is when comparing column names and not during actual queries, not sure how much that matters.


check outCustomers === inpCustomers[0..^2]