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
9afe4046
Unverified
Commit
9afe4046
authored
Dec 04, 2018
by
Marco Pivetta
Committed by
GitHub
Dec 04, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3374 from BenMorel/cleanup-mysql-platform
Clean up MySqlPlatform::getListTableIndexesSQL() fields
parents
777994b7
35d354e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
MySqlPlatform.php
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
+4
-5
No files found.
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
View file @
9afe4046
...
...
@@ -154,11 +154,10 @@ class MySqlPlatform extends AbstractPlatform
$currentDatabase
=
$this
->
quoteStringLiteral
(
$currentDatabase
);
$table
=
$this
->
quoteStringLiteral
(
$table
);
return
'SELECT TABLE_NAME AS `Table`, NON_UNIQUE AS Non_Unique, INDEX_NAME AS Key_name, '
.
'SEQ_IN_INDEX AS Seq_in_index, COLUMN_NAME AS Column_Name, COLLATION AS Collation, '
.
'CARDINALITY AS Cardinality, SUB_PART AS Sub_Part, PACKED AS Packed, '
.
'NULLABLE AS `Null`, INDEX_TYPE AS Index_Type, COMMENT AS Comment '
.
'FROM information_schema.STATISTICS WHERE TABLE_NAME = '
.
$table
.
' AND TABLE_SCHEMA = '
.
$currentDatabase
.
return
'SELECT NON_UNIQUE AS Non_Unique, INDEX_NAME AS Key_name, COLUMN_NAME AS Column_Name,'
.
' SUB_PART AS Sub_Part, INDEX_TYPE AS Index_Type'
.
' FROM information_schema.STATISTICS WHERE TABLE_NAME = '
.
$table
.
' AND TABLE_SCHEMA = '
.
$currentDatabase
.
' ORDER BY SEQ_IN_INDEX ASC'
;
}
...
...
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