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

Slash before '_' in postgresql like condition with 'pg_' prefix to prevent confusion with the wildcard character #2670

Conversation

blackbjorn
Copy link

There are conditions schema not like 'pg_%' for exclude system tables, sequence etc. (system prefix pg_) in some queries for postgresql platform.
But in like condition symbol _ means "any single character" (docs)
It's the cause of problems when schema name starts with pg<non underscore character> (pgp for example), but it's valid schema name.

@deeky666 deeky666 self-requested a review March 9, 2017 15:43
@deeky666 deeky666 self-assigned this Mar 9, 2017
@deeky666 deeky666 added this to the 2.5.13 milestone Mar 9, 2017
@deeky666 deeky666 merged commit c2bf5fb into doctrine:master Mar 9, 2017
@deeky666
Copy link
Member

deeky666 commented Mar 9, 2017

@blackbjorn thx!

@deeky666
Copy link
Member

deeky666 commented Mar 9, 2017

Backported to 2.5 via 31db226

@blackbjorn blackbjorn deleted the postgresql-slash-before-underscore-in-like-condition branch March 10, 2017 07:33
@Ocramius Ocramius changed the title Slash before '_' in postgresql like condition with 'pg_' prefix Slash before '_' in postgresql like condition with 'pg_' prefix to prevent confusion with the wildcard character Jul 22, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants