Skip to content
This repository was archived by the owner on Sep 8, 2023. It is now read-only.

Conversation

multimeric
Copy link

Currently if you use an identifer with capitals in it but no special characters, e.g. someStuff, pg-escape will not quote the identifier. However this will result in postgres automatically converting the identifier to lower case (e.g. somestuff), which can cause some issues with table lookup.

This PR simply removes the case insensitive flag from the validIdent function, and adds one line to the tests for this function that checks that it quotes identifiers with capitals.

multimeric referenced this pull request in FluidInc/koa-pg-session Jan 29, 2016
@motiz88
Copy link

motiz88 commented Jan 29, 2016

+1. This would be the correct behavior.

@shaunc
Copy link

shaunc commented Jun 6, 2016

Excellent --- just what I was about to do myself. Can we get this in? An identifier 'Foo' is not a "valid identifier" for Foo: rather it identifies foo unless you add quotes.

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

Successfully merging this pull request may close these issues.

3 participants