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
25d44d2d
Unverified
Commit
25d44d2d
authored
Jul 17, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace $currentDatabase with $database
parent
9e37d1bd
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
14 deletions
+14
-14
AbstractPlatform.php
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
+2
-2
DB2Platform.php
lib/Doctrine/DBAL/Platforms/DB2Platform.php
+1
-1
MySqlPlatform.php
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
+5
-5
OraclePlatform.php
lib/Doctrine/DBAL/Platforms/OraclePlatform.php
+1
-1
PostgreSqlPlatform.php
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
+1
-1
SQLAnywherePlatform.php
lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php
+1
-1
SQLServerPlatform.php
lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php
+1
-1
SqlitePlatform.php
lib/Doctrine/DBAL/Platforms/SqlitePlatform.php
+2
-2
No files found.
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
View file @
25d44d2d
...
...
@@ -2875,13 +2875,13 @@ abstract class AbstractPlatform
* requests may be impossible.
*
* @param string $table
* @param string $
currentD
atabase
* @param string $
d
atabase
*
* @return string
*
* @throws DBALException If not supported on this platform.
*/
public
function
getListTableIndexesSQL
(
$table
,
$
currentD
atabase
=
null
)
public
function
getListTableIndexesSQL
(
$table
,
$
d
atabase
=
null
)
{
throw
DBALException
::
notSupported
(
__METHOD__
);
}
...
...
lib/Doctrine/DBAL/Platforms/DB2Platform.php
View file @
25d44d2d
...
...
@@ -340,7 +340,7 @@ class DB2Platform extends AbstractPlatform
/**
* {@inheritDoc}
*/
public
function
getListTableIndexesSQL
(
$table
,
$
currentD
atabase
=
null
)
public
function
getListTableIndexesSQL
(
$table
,
$
d
atabase
=
null
)
{
$table
=
$this
->
quoteStringLiteral
(
$table
);
...
...
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
View file @
25d44d2d
...
...
@@ -149,16 +149,16 @@ class MySqlPlatform extends AbstractPlatform
* Two approaches to listing the table indexes. The information_schema is
* preferred, because it doesn't cause problems with SQL keywords such as "order" or "table".
*/
public
function
getListTableIndexesSQL
(
$table
,
$
currentD
atabase
=
null
)
public
function
getListTableIndexesSQL
(
$table
,
$
d
atabase
=
null
)
{
if
(
$
currentD
atabase
)
{
$
currentDatabase
=
$this
->
quoteStringLiteral
(
$currentD
atabase
);
$table
=
$this
->
quoteStringLiteral
(
$table
);
if
(
$
d
atabase
)
{
$
database
=
$this
->
quoteStringLiteral
(
$d
atabase
);
$table
=
$this
->
quoteStringLiteral
(
$table
);
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 = '
.
$
currentD
atabase
.
' AND TABLE_SCHEMA = '
.
$
d
atabase
.
' ORDER BY SEQ_IN_INDEX ASC'
;
}
...
...
lib/Doctrine/DBAL/Platforms/OraclePlatform.php
View file @
25d44d2d
...
...
@@ -419,7 +419,7 @@ class OraclePlatform extends AbstractPlatform
*
* @link http://ezcomponents.org/docs/api/trunk/DatabaseSchema/ezcDbSchemaOracleReader.html
*/
public
function
getListTableIndexesSQL
(
$table
,
$
currentD
atabase
=
null
)
public
function
getListTableIndexesSQL
(
$table
,
$
d
atabase
=
null
)
{
$table
=
$this
->
normalizeIdentifier
(
$table
);
$table
=
$this
->
quoteStringLiteral
(
$table
->
getName
());
...
...
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
View file @
25d44d2d
...
...
@@ -346,7 +346,7 @@ SQL
*
* @link http://ezcomponents.org/docs/api/trunk/DatabaseSchema/ezcDbSchemaPgsqlReader.html
*/
public
function
getListTableIndexesSQL
(
$table
,
$
currentD
atabase
=
null
)
public
function
getListTableIndexesSQL
(
$table
,
$
d
atabase
=
null
)
{
return
'SELECT quote_ident(relname) as relname, pg_index.indisunique, pg_index.indisprimary,
pg_index.indkey, pg_index.indrelid,
...
...
lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php
View file @
25d44d2d
...
...
@@ -874,7 +874,7 @@ SQL
/**
* {@inheritdoc}
*/
public
function
getListTableIndexesSQL
(
$table
,
$
currentD
atabase
=
null
)
public
function
getListTableIndexesSQL
(
$table
,
$
d
atabase
=
null
)
{
$user
=
''
;
...
...
lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php
View file @
25d44d2d
...
...
@@ -963,7 +963,7 @@ SQL
/**
* {@inheritDoc}
*/
public
function
getListTableIndexesSQL
(
$table
,
$
currentD
atabase
=
null
)
public
function
getListTableIndexesSQL
(
$table
,
$
d
atabase
=
null
)
{
return
"SELECT idx.name AS key_name,
col.name AS column_name,
...
...
lib/Doctrine/DBAL/Platforms/SqlitePlatform.php
View file @
25d44d2d
...
...
@@ -451,7 +451,7 @@ class SqlitePlatform extends AbstractPlatform
/**
* {@inheritDoc}
*/
public
function
getListTableColumnsSQL
(
$table
,
$
currentD
atabase
=
null
)
public
function
getListTableColumnsSQL
(
$table
,
$
d
atabase
=
null
)
{
$table
=
str_replace
(
'.'
,
'__'
,
$table
);
...
...
@@ -461,7 +461,7 @@ class SqlitePlatform extends AbstractPlatform
/**
* {@inheritDoc}
*/
public
function
getListTableIndexesSQL
(
$table
,
$
currentD
atabase
=
null
)
public
function
getListTableIndexesSQL
(
$table
,
$
d
atabase
=
null
)
{
$table
=
str_replace
(
'.'
,
'__'
,
$table
);
...
...
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