Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
6f537ddd
Commit
6f537ddd
authored
Mar 09, 2017
by
Chernyavtsev Ivan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add slashes before '_' in postgresql like condition for system prefix 'pg_'
parent
50bf6234
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
PostgreSqlPlatform.php
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
+3
-3
No files found.
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
View file @
6f537ddd
...
@@ -237,7 +237,7 @@ class PostgreSqlPlatform extends AbstractPlatform
...
@@ -237,7 +237,7 @@ class PostgreSqlPlatform extends AbstractPlatform
{
{
return
"SELECT schema_name AS nspname
return
"SELECT schema_name AS nspname
FROM information_schema.schemata
FROM information_schema.schemata
WHERE schema_name NOT LIKE 'pg_%'
WHERE schema_name NOT LIKE 'pg
\
_%'
AND schema_name != 'information_schema'"
;
AND schema_name != 'information_schema'"
;
}
}
...
@@ -249,7 +249,7 @@ class PostgreSqlPlatform extends AbstractPlatform
...
@@ -249,7 +249,7 @@ class PostgreSqlPlatform extends AbstractPlatform
return
"SELECT sequence_name AS relname,
return
"SELECT sequence_name AS relname,
sequence_schema AS schemaname
sequence_schema AS schemaname
FROM information_schema.sequences
FROM information_schema.sequences
WHERE sequence_schema NOT LIKE 'pg_%'
WHERE sequence_schema NOT LIKE 'pg
\
_%'
AND sequence_schema != 'information_schema'"
;
AND sequence_schema != 'information_schema'"
;
}
}
...
@@ -261,7 +261,7 @@ class PostgreSqlPlatform extends AbstractPlatform
...
@@ -261,7 +261,7 @@ class PostgreSqlPlatform extends AbstractPlatform
return
"SELECT quote_ident(table_name) AS table_name,
return
"SELECT quote_ident(table_name) AS table_name,
table_schema AS schema_name
table_schema AS schema_name
FROM information_schema.tables
FROM information_schema.tables
WHERE table_schema NOT LIKE 'pg_%'
WHERE table_schema NOT LIKE 'pg
\
_%'
AND table_schema != 'information_schema'
AND table_schema != 'information_schema'
AND table_name != 'geometry_columns'
AND table_name != 'geometry_columns'
AND table_name != 'spatial_ref_sys'
AND table_name != 'spatial_ref_sys'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment