Skip to content

Commit

Permalink
Merge pull request #2670 from blackbjorn/postgresql-slash-before-unde…
Browse files Browse the repository at this point in the history
…rscore-in-like-condition

Slash before '_' in postgresql like condition with 'pg_' prefix
  • Loading branch information
deeky666 authored Mar 9, 2017
2 parents 50bf623 + 6f537dd commit c2bf5fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public function getListNamespacesSQL()
{
return "SELECT schema_name AS nspname
FROM information_schema.schemata
WHERE schema_name NOT LIKE 'pg_%'
WHERE schema_name NOT LIKE 'pg\_%'
AND schema_name != 'information_schema'";
}

Expand All @@ -249,7 +249,7 @@ public function getListSequencesSQL($database)
return "SELECT sequence_name AS relname,
sequence_schema AS schemaname
FROM information_schema.sequences
WHERE sequence_schema NOT LIKE 'pg_%'
WHERE sequence_schema NOT LIKE 'pg\_%'
AND sequence_schema != 'information_schema'";
}

Expand All @@ -261,7 +261,7 @@ public function getListTablesSQL()
return "SELECT quote_ident(table_name) AS table_name,
table_schema AS schema_name
FROM information_schema.tables
WHERE table_schema NOT LIKE 'pg_%'
WHERE table_schema NOT LIKE 'pg\_%'
AND table_schema != 'information_schema'
AND table_name != 'geometry_columns'
AND table_name != 'spatial_ref_sys'
Expand Down

0 comments on commit c2bf5fb

Please sign in to comment.