-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pg): Fixing notify handling name cases oddly.
This makes it so that channel names for NOTIFY/LISTEN/UNLISTEN are consistent. That is that they are double quoted in all instances except for when they are referenced by `pg_notify`. This way the channel names are no longer case-insensitive. This happens because of how PostgreSQL parses the SQL statements for NOTIFY/LISTEN/UNLISTEN and treats the arguments as an identifier. Where as it treats the arguments to `pg_notify` as only a string. This causes arguments that are not double quoted to be adjusted to lower case when passed to the SQL statement. By making all usages consistent, we no longer have to worry about channel names being odd.
- Loading branch information
1 parent
3a10351
commit 8b21247
Showing
2 changed files
with
11 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters