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
0a73cb53
Commit
0a73cb53
authored
Jun 21, 2011
by
lucassouza1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Filter table columns by owner
parent
48c78a2d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
OraclePlatform.php
lib/Doctrine/DBAL/Platforms/OraclePlatform.php
+8
-1
No files found.
lib/Doctrine/DBAL/Platforms/OraclePlatform.php
View file @
0a73cb53
...
...
@@ -464,9 +464,16 @@ LEFT JOIN all_cons_columns r_cols
public
function
getListTableColumnsSQL
(
$table
,
$database
=
null
)
{
$table
=
strtoupper
(
$table
);
$ownerCondition
=
''
;
if
(
null
!==
$database
){
$database
=
strtoupper
(
$database
);
$ownerCondition
=
"AND c.owner = '"
.
$database
.
"'"
;
}
return
"SELECT c.*, d.comments FROM all_tab_columns c "
.
"INNER JOIN all_col_comments d ON d.OWNER = c.OWNER AND d.TABLE_NAME = c.TABLE_NAME AND d.COLUMN_NAME = c.COLUMN_NAME "
.
"WHERE c.table_name = '"
.
$table
.
"' ORDER BY c.column_name"
;
"WHERE c.table_name = '"
.
$table
.
"'
"
.
$ownerCondition
.
"
ORDER BY c.column_name"
;
}
/**
...
...
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