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
49927081
Commit
49927081
authored
Dec 16, 2014
by
Jeroen Thora
Committed by
Steve Müller
Dec 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor phpdoc fixes in the remaining files after pr #746
parent
7b9474fc
Changes
32
Show whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
75 additions
and
53 deletions
+75
-53
MasterSlaveConnection.php
lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php
+1
-1
Connection.php
lib/Doctrine/DBAL/Driver/DrizzlePDOMySql/Connection.php
+2
-1
DB2Connection.php
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Connection.php
+3
-0
MysqliConnection.php
lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php
+2
-0
MysqliStatement.php
lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php
+5
-2
OCI8Statement.php
lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
+1
-1
SQLSrvStatement.php
lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php
+1
-1
TableGenerator.php
lib/Doctrine/DBAL/Id/TableGenerator.php
+1
-1
ExpressionBuilder.php
lib/Doctrine/DBAL/Query/Expression/ExpressionBuilder.php
+1
-1
QueryBuilder.php
lib/Doctrine/DBAL/Query/QueryBuilder.php
+1
-0
AbstractAsset.php
lib/Doctrine/DBAL/Schema/AbstractAsset.php
+2
-1
AbstractSchemaManager.php
lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php
+4
-2
Column.php
lib/Doctrine/DBAL/Schema/Column.php
+10
-8
DB2SchemaManager.php
lib/Doctrine/DBAL/Schema/DB2SchemaManager.php
+2
-2
DrizzleSchemaManager.php
lib/Doctrine/DBAL/Schema/DrizzleSchemaManager.php
+9
-9
ForeignKeyConstraint.php
lib/Doctrine/DBAL/Schema/ForeignKeyConstraint.php
+1
-0
Index.php
lib/Doctrine/DBAL/Schema/Index.php
+1
-0
PostgreSqlSchemaManager.php
lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php
+2
-2
SQLServerSchemaManager.php
lib/Doctrine/DBAL/Schema/SQLServerSchemaManager.php
+2
-2
SchemaConfig.php
lib/Doctrine/DBAL/Schema/SchemaConfig.php
+2
-2
SchemaException.php
lib/Doctrine/DBAL/Schema/SchemaException.php
+1
-1
SqliteSchemaManager.php
lib/Doctrine/DBAL/Schema/SqliteSchemaManager.php
+2
-1
AbstractSchemaSynchronizer.php
...e/DBAL/Schema/Synchronizer/AbstractSchemaSynchronizer.php
+1
-1
Table.php
lib/Doctrine/DBAL/Schema/Table.php
+2
-2
CreateSchemaSqlCollector.php
...Doctrine/DBAL/Schema/Visitor/CreateSchemaSqlCollector.php
+1
-1
PoolingShardConnection.php
lib/Doctrine/DBAL/Sharding/PoolingShardConnection.php
+2
-1
SQLAzureFederationsSynchronizer.php
...BAL/Sharding/SQLAzure/SQLAzureFederationsSynchronizer.php
+1
-0
SQLAzureShardManager.php
lib/Doctrine/DBAL/Sharding/SQLAzure/SQLAzureShardManager.php
+3
-2
ImportCommand.php
lib/Doctrine/DBAL/Tools/Console/Command/ImportCommand.php
+1
-1
ReservedWordsCommand.php
...trine/DBAL/Tools/Console/Command/ReservedWordsCommand.php
+1
-1
DateTimeTzType.php
lib/Doctrine/DBAL/Types/DateTimeTzType.php
+6
-6
VarDateTimeType.php
lib/Doctrine/DBAL/Types/VarDateTimeType.php
+1
-0
No files found.
lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php
View file @
49927081
...
...
@@ -121,7 +121,7 @@ class MasterSlaveConnection extends Connection
$params
[
'slaves'
][
$slaveKey
][
'driver'
]
=
$params
[
'driver'
];
}
$this
->
keepSlave
=
isset
(
$params
[
'keepSlave'
])
?
(
bool
)
$params
[
'keepSlave'
]
:
false
;
$this
->
keepSlave
=
isset
(
$params
[
'keepSlave'
])
?
(
bool
)
$params
[
'keepSlave'
]
:
false
;
parent
::
__construct
(
$params
,
$driver
,
$config
,
$eventManager
);
}
...
...
lib/Doctrine/DBAL/Driver/DrizzlePDOMySql/Connection.php
View file @
49927081
...
...
@@ -27,7 +27,7 @@ class Connection extends \Doctrine\DBAL\Driver\PDOConnection
/**
* {@inheritdoc}
*/
public
function
quote
(
$value
,
$type
=
\PDO
::
PARAM_STR
)
public
function
quote
(
$value
,
$type
=
\PDO
::
PARAM_STR
)
{
if
(
\PDO
::
PARAM_BOOL
===
$type
)
{
if
(
$value
)
{
...
...
@@ -36,6 +36,7 @@ class Connection extends \Doctrine\DBAL\Driver\PDOConnection
return
'false'
;
}
}
return
parent
::
quote
(
$value
,
$type
);
}
}
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Connection.php
View file @
49927081
...
...
@@ -78,6 +78,7 @@ class DB2Connection implements Connection, ServerInfoAwareConnection
if
(
!
$stmt
)
{
throw
new
DB2Exception
(
db2_stmt_errormsg
());
}
return
new
DB2Statement
(
$stmt
);
}
...
...
@@ -90,6 +91,7 @@ class DB2Connection implements Connection, ServerInfoAwareConnection
$sql
=
$args
[
0
];
$stmt
=
$this
->
prepare
(
$sql
);
$stmt
->
execute
();
return
$stmt
;
}
...
...
@@ -113,6 +115,7 @@ class DB2Connection implements Connection, ServerInfoAwareConnection
{
$stmt
=
$this
->
prepare
(
$statement
);
$stmt
->
execute
();
return
$stmt
->
rowCount
();
}
...
...
lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php
View file @
49927081
...
...
@@ -135,6 +135,7 @@ class MysqliConnection implements Connection, PingableConnection, ServerInfoAwar
$sql
=
$args
[
0
];
$stmt
=
$this
->
prepare
(
$sql
);
$stmt
->
execute
();
return
$stmt
;
}
...
...
@@ -172,6 +173,7 @@ class MysqliConnection implements Connection, PingableConnection, ServerInfoAwar
public
function
beginTransaction
()
{
$this
->
_conn
->
query
(
'START TRANSACTION'
);
return
true
;
}
...
...
lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php
View file @
49927081
...
...
@@ -97,7 +97,7 @@ class MysqliStatement implements \IteratorAggregate, Statement
$paramCount
=
$this
->
_stmt
->
param_count
;
if
(
0
<
$paramCount
)
{
$this
->
types
=
str_repeat
(
's'
,
$paramCount
);
$this
->
_bindedValues
=
array_fill
(
1
,
$paramCount
,
null
);
$this
->
_bindedValues
=
array_fill
(
1
,
$paramCount
,
null
);
}
}
...
...
@@ -178,7 +178,7 @@ class MysqliStatement implements \IteratorAggregate, Statement
$meta
->
free
();
$this
->
_columnNames
=
$columnNames
;
$this
->
_rowBindedValues
=
array_fill
(
0
,
count
(
$columnNames
),
NULL
);
$this
->
_rowBindedValues
=
array_fill
(
0
,
count
(
$columnNames
),
null
);
$refs
=
array
();
foreach
(
$this
->
_rowBindedValues
as
$key
=>
&
$value
)
{
...
...
@@ -228,6 +228,7 @@ class MysqliStatement implements \IteratorAggregate, Statement
foreach
(
$this
->
_rowBindedValues
as
$v
)
{
$values
[]
=
$v
;
}
return
$values
;
}
...
...
@@ -260,6 +261,7 @@ class MysqliStatement implements \IteratorAggregate, Statement
case
PDO
::
FETCH_BOTH
:
$ret
=
array_combine
(
$this
->
_columnNames
,
$values
);
$ret
+=
$values
;
return
$ret
;
default
:
...
...
@@ -335,6 +337,7 @@ class MysqliStatement implements \IteratorAggregate, Statement
if
(
false
===
$this
->
_columnNames
)
{
return
$this
->
_stmt
->
affected_rows
;
}
return
$this
->
_stmt
->
num_rows
;
}
...
...
lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
View file @
49927081
lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php
View file @
49927081
...
...
@@ -126,7 +126,7 @@ class SQLSrvStatement implements IteratorAggregate, Statement
*/
public
function
bindValue
(
$param
,
$value
,
$type
=
null
)
{
return
$this
->
bindParam
(
$param
,
$value
,
$type
,
null
);
return
$this
->
bindParam
(
$param
,
$value
,
$type
,
null
);
}
/**
...
...
lib/Doctrine/DBAL/Id/TableGenerator.php
View file @
49927081
...
...
@@ -155,7 +155,7 @@ class TableGenerator
$this
->
conn
->
commit
();
}
catch
(
\Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
$this
->
conn
->
rollback
();
throw
new
\Doctrine\DBAL\DBALException
(
"Error occurred while generating ID with TableGenerator, aborted generation: "
.
$e
->
getMessage
(),
0
,
$e
);
}
...
...
lib/Doctrine/DBAL/Query/Expression/ExpressionBuilder.php
View file @
49927081
lib/Doctrine/DBAL/Query/QueryBuilder.php
View file @
49927081
...
...
@@ -1293,6 +1293,7 @@ class QueryBuilder
{
$this
->
boundCounter
++
;
$this
->
setParameter
(
$this
->
boundCounter
,
$value
,
$type
);
return
"?"
;
}
...
...
lib/Doctrine/DBAL/Schema/AbstractAsset.php
View file @
49927081
...
...
@@ -99,7 +99,7 @@ abstract class AbstractAsset
* The shortest name is stripped of the default namespace. All other
* namespaced elements are returned as full-qualified names.
*
* @param string
* @param string
$defaultNamespaceName
*
* @return string
*/
...
...
@@ -180,6 +180,7 @@ abstract class AbstractAsset
if
(
$this
->
_namespace
)
{
return
$this
->
_namespace
.
"."
.
$this
->
_name
;
}
return
$this
->
_name
;
}
...
...
lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php
View file @
49927081
...
...
@@ -202,7 +202,7 @@ abstract class AbstractSchemaManager
*/
public
function
tablesExist
(
$tableNames
)
{
$tableNames
=
array_map
(
'strtolower'
,
(
array
)
$tableNames
);
$tableNames
=
array_map
(
'strtolower'
,
(
array
)
$tableNames
);
return
count
(
$tableNames
)
==
count
(
\array_intersect
(
$tableNames
,
array_map
(
'strtolower'
,
$this
->
listTableNames
())));
}
...
...
@@ -237,9 +237,10 @@ abstract class AbstractSchemaManager
return
$assetNames
;
}
return
array_values
(
return
array_values
(
array_filter
(
$assetNames
,
function
(
$assetName
)
use
(
$filterExpr
)
{
$assetName
=
(
$assetName
instanceof
AbstractAsset
)
?
$assetName
->
getName
()
:
$assetName
;
return
preg_match
(
$filterExpr
,
$assetName
);
})
);
...
...
@@ -952,6 +953,7 @@ abstract class AbstractSchemaManager
/**
* @param array $views
*
* @return array
*/
protected
function
_getPortableViewsList
(
$views
)
...
...
lib/Doctrine/DBAL/Schema/Column.php
View file @
49927081
...
...
@@ -134,6 +134,7 @@ class Column extends AbstractAsset
public
function
setType
(
Type
$type
)
{
$this
->
_type
=
$type
;
return
$this
;
}
...
...
@@ -145,7 +146,7 @@ class Column extends AbstractAsset
public
function
setLength
(
$length
)
{
if
(
$length
!==
null
)
{
$this
->
_length
=
(
int
)
$length
;
$this
->
_length
=
(
int
)
$length
;
}
else
{
$this
->
_length
=
null
;
}
...
...
@@ -164,7 +165,7 @@ class Column extends AbstractAsset
$precision
=
10
;
// defaults to 10 when no valid precision is given.
}
$this
->
_precision
=
(
int
)
$precision
;
$this
->
_precision
=
(
int
)
$precision
;
return
$this
;
}
...
...
@@ -180,7 +181,7 @@ class Column extends AbstractAsset
$scale
=
0
;
}
$this
->
_scale
=
(
int
)
$scale
;
$this
->
_scale
=
(
int
)
$scale
;
return
$this
;
}
...
...
@@ -192,7 +193,7 @@ class Column extends AbstractAsset
*/
public
function
setUnsigned
(
$unsigned
)
{
$this
->
_unsigned
=
(
bool
)
$unsigned
;
$this
->
_unsigned
=
(
bool
)
$unsigned
;
return
$this
;
}
...
...
@@ -204,7 +205,7 @@ class Column extends AbstractAsset
*/
public
function
setFixed
(
$fixed
)
{
$this
->
_fixed
=
(
bool
)
$fixed
;
$this
->
_fixed
=
(
bool
)
$fixed
;
return
$this
;
}
...
...
@@ -216,7 +217,7 @@ class Column extends AbstractAsset
*/
public
function
setNotnull
(
$notnull
)
{
$this
->
_notnull
=
(
bool
)
$notnull
;
$this
->
_notnull
=
(
bool
)
$notnull
;
return
$this
;
}
...
...
@@ -386,6 +387,7 @@ class Column extends AbstractAsset
public
function
setAutoincrement
(
$flag
)
{
$this
->
_autoincrement
=
$flag
;
return
$this
;
}
...
...
lib/Doctrine/DBAL/Schema/DB2SchemaManager.php
View file @
49927081
...
...
@@ -87,8 +87,8 @@ class DB2SchemaManager extends AbstractSchemaManager
$options
=
array
(
'length'
=>
$length
,
'unsigned'
=>
(
bool
)
$unsigned
,
'fixed'
=>
(
bool
)
$fixed
,
'unsigned'
=>
(
bool
)
$unsigned
,
'fixed'
=>
(
bool
)
$fixed
,
'default'
=>
$default
,
'autoincrement'
=>
(
boolean
)
$tableColumn
[
'autoincrement'
],
'notnull'
=>
(
bool
)
(
$tableColumn
[
'nulls'
]
==
'N'
),
...
...
lib/Doctrine/DBAL/Schema/DrizzleSchemaManager.php
View file @
49927081
...
...
@@ -40,12 +40,12 @@ class DrizzleSchemaManager extends AbstractSchemaManager
$tableColumn
[
'COLUMN_COMMENT'
]
=
$this
->
removeDoctrineTypeFromComment
(
$tableColumn
[
'COLUMN_COMMENT'
],
$type
);
$options
=
array
(
'notnull'
=>
!
(
bool
)
$tableColumn
[
'IS_NULLABLE'
],
'length'
=>
(
int
)
$tableColumn
[
'CHARACTER_MAXIMUM_LENGTH'
],
'notnull'
=>
!
(
bool
)
$tableColumn
[
'IS_NULLABLE'
],
'length'
=>
(
int
)
$tableColumn
[
'CHARACTER_MAXIMUM_LENGTH'
],
'default'
=>
isset
(
$tableColumn
[
'COLUMN_DEFAULT'
])
?
$tableColumn
[
'COLUMN_DEFAULT'
]
:
null
,
'autoincrement'
=>
(
bool
)
$tableColumn
[
'IS_AUTO_INCREMENT'
],
'scale'
=>
(
int
)
$tableColumn
[
'NUMERIC_SCALE'
],
'precision'
=>
(
int
)
$tableColumn
[
'NUMERIC_PRECISION'
],
'autoincrement'
=>
(
bool
)
$tableColumn
[
'IS_AUTO_INCREMENT'
],
'scale'
=>
(
int
)
$tableColumn
[
'NUMERIC_SCALE'
],
'precision'
=>
(
int
)
$tableColumn
[
'NUMERIC_PRECISION'
],
'comment'
=>
isset
(
$tableColumn
[
'COLUMN_COMMENT'
])
&&
''
!==
$tableColumn
[
'COLUMN_COMMENT'
]
?
$tableColumn
[
'COLUMN_COMMENT'
]
:
null
,
...
...
@@ -86,15 +86,15 @@ class DrizzleSchemaManager extends AbstractSchemaManager
$columns
[]
=
trim
(
$value
,
' `'
);
}
$ref
_c
olumns
=
array
();
$ref
C
olumns
=
array
();
foreach
(
explode
(
','
,
$tableForeignKey
[
'REFERENCED_TABLE_COLUMNS'
])
as
$value
)
{
$ref
_c
olumns
[]
=
trim
(
$value
,
' `'
);
$ref
C
olumns
[]
=
trim
(
$value
,
' `'
);
}
return
new
ForeignKeyConstraint
(
$columns
,
$tableForeignKey
[
'REFERENCED_TABLE_NAME'
],
$ref
_c
olumns
,
$ref
C
olumns
,
$tableForeignKey
[
'CONSTRAINT_NAME'
],
array
(
'onUpdate'
=>
$tableForeignKey
[
'UPDATE_RULE'
],
...
...
@@ -110,7 +110,7 @@ class DrizzleSchemaManager extends AbstractSchemaManager
{
$indexes
=
array
();
foreach
(
$tableIndexes
as
$k
)
{
$k
[
'primary'
]
=
(
boolean
)
$k
[
'primary'
];
$k
[
'primary'
]
=
(
boolean
)
$k
[
'primary'
];
$indexes
[]
=
$k
;
}
...
...
lib/Doctrine/DBAL/Schema/ForeignKeyConstraint.php
View file @
49927081
...
...
@@ -231,6 +231,7 @@ class ForeignKeyConstraint extends AbstractAsset implements Constraint
public
function
getUnqualifiedForeignTableName
()
{
$parts
=
explode
(
"."
,
$this
->
_foreignTableName
->
getName
());
return
strtolower
(
end
(
$parts
));
}
...
...
lib/Doctrine/DBAL/Schema/Index.php
View file @
49927081
...
...
@@ -339,6 +339,7 @@ class Index extends AbstractAsset implements Constraint
/**
* Return whether the two indexes have the same partial index
* @param \Doctrine\DBAL\Schema\Index $other
*
* @return boolean
*/
private
function
samePartialIndex
(
Index
$other
)
...
...
lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php
View file @
49927081
lib/Doctrine/DBAL/Schema/SQLServerSchemaManager.php
View file @
49927081
...
...
@@ -206,13 +206,13 @@ class SQLServerSchemaManager extends AbstractSchemaManager
try
{
$tableIndexes
=
$this
->
_conn
->
fetchAll
(
$sql
);
}
catch
(
\PDOException
$e
)
{
}
catch
(
\PDOException
$e
)
{
if
(
$e
->
getCode
()
==
"IMSSP"
)
{
return
array
();
}
else
{
throw
$e
;
}
}
catch
(
SQLSrvException
$e
)
{
}
catch
(
SQLSrvException
$e
)
{
if
(
strpos
(
$e
->
getMessage
(),
'SQLSTATE [01000, 15472]'
)
===
0
)
{
return
array
();
}
else
{
...
...
lib/Doctrine/DBAL/Schema/SchemaConfig.php
View file @
49927081
...
...
@@ -63,7 +63,7 @@ class SchemaConfig
*/
public
function
setExplicitForeignKeyIndexes
(
$flag
)
{
$this
->
hasExplicitForeignKeyIndexes
=
(
bool
)
$flag
;
$this
->
hasExplicitForeignKeyIndexes
=
(
bool
)
$flag
;
}
/**
...
...
@@ -73,7 +73,7 @@ class SchemaConfig
*/
public
function
setMaxIdentifierLength
(
$length
)
{
$this
->
maxIdentifierLength
=
(
int
)
$length
;
$this
->
maxIdentifierLength
=
(
int
)
$length
;
}
/**
...
...
lib/Doctrine/DBAL/Schema/SchemaException.php
View file @
49927081
...
...
@@ -176,6 +176,6 @@ class SchemaException extends \Doctrine\DBAL\DBALException
*/
static
public
function
alterTableChangeNotSupported
(
$changeName
)
{
return
new
self
(
"Alter table change not supported, given '
$changeName
'"
);
return
new
self
(
"Alter table change not supported, given '
$changeName
'"
);
}
}
lib/Doctrine/DBAL/Schema/SqliteSchemaManager.php
View file @
49927081
...
...
@@ -172,6 +172,7 @@ class SqliteSchemaManager extends AbstractSchemaManager
if
(
$a
[
'pk'
]
==
$b
[
'pk'
])
{
return
$a
[
'cid'
]
-
$b
[
'cid'
];
}
return
$a
[
'pk'
]
-
$b
[
'pk'
];
});
foreach
(
$indexArray
as
$indexColumnRow
)
{
...
...
lib/Doctrine/DBAL/Schema/Synchronizer/AbstractSchemaSynchronizer.php
View file @
49927081
...
...
@@ -47,7 +47,7 @@ abstract class AbstractSchemaSynchronizer implements SchemaSynchronizer
foreach
(
$sql
as
$s
)
{
try
{
$this
->
conn
->
exec
(
$s
);
}
catch
(
\Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
}
}
...
...
lib/Doctrine/DBAL/Schema/Table.php
View file @
49927081
...
...
@@ -383,7 +383,7 @@ class Table extends AbstractAsset
*/
public
function
addForeignKeyConstraint
(
$foreignTable
,
array
$localColumnNames
,
array
$foreignColumnNames
,
array
$options
=
array
(),
$constraintName
=
null
)
{
$constraintName
=
$constraintName
?:
$this
->
_generateIdentifierName
(
array_merge
((
array
)
$this
->
getName
(),
$localColumnNames
),
"fk"
,
$this
->
_getMaxIdentifierLength
());
$constraintName
=
$constraintName
?:
$this
->
_generateIdentifierName
(
array_merge
((
array
)
$this
->
getName
(),
$localColumnNames
),
"fk"
,
$this
->
_getMaxIdentifierLength
());
return
$this
->
addNamedForeignKeyConstraint
(
$constraintName
,
$foreignTable
,
$localColumnNames
,
$foreignColumnNames
,
$options
);
}
...
...
@@ -532,7 +532,7 @@ class Table extends AbstractAsset
$name
=
$constraint
->
getName
();
}
else
{
$name
=
$this
->
_generateIdentifierName
(
array_merge
((
array
)
$this
->
getName
(),
$constraint
->
getLocalColumns
()),
"fk"
,
$this
->
_getMaxIdentifierLength
()
array_merge
((
array
)
$this
->
getName
(),
$constraint
->
getLocalColumns
()),
"fk"
,
$this
->
_getMaxIdentifierLength
()
);
}
$name
=
$this
->
normalizeIdentifier
(
$name
);
...
...
lib/Doctrine/DBAL/Schema/Visitor/CreateSchemaSqlCollector.php
View file @
49927081
...
...
@@ -103,7 +103,7 @@ class CreateSchemaSqlCollector extends AbstractVisitor
{
$this
->
createSequenceQueries
=
array_merge
(
$this
->
createSequenceQueries
,
(
array
)
$this
->
platform
->
getCreateSequenceSQL
(
$sequence
)
(
array
)
$this
->
platform
->
getCreateSequenceSQL
(
$sequence
)
);
}
...
...
lib/Doctrine/DBAL/Sharding/PoolingShardConnection.php
View file @
49927081
...
...
@@ -151,10 +151,11 @@ class PoolingShardConnection extends Connection
throw
new
ShardingException
(
"Cannot switch shard when transaction is active."
);
}
$this
->
activeShardId
=
(
int
)
$shardId
;
$this
->
activeShardId
=
(
int
)
$shardId
;
if
(
isset
(
$this
->
activeConnections
[
$this
->
activeShardId
]))
{
$this
->
_conn
=
$this
->
activeConnections
[
$this
->
activeShardId
];
return
false
;
}
...
...
lib/Doctrine/DBAL/Sharding/SQLAzure/SQLAzureFederationsSynchronizer.php
View file @
49927081
...
...
@@ -280,6 +280,7 @@ class SQLAzureFederationsSynchronizer extends AbstractSchemaSynchronizer
$defaultValue
=
''
;
break
;
}
return
$defaultValue
;
}
...
...
lib/Doctrine/DBAL/Sharding/SQLAzure/SQLAzureShardManager.php
View file @
49927081
...
...
@@ -86,7 +86,7 @@ class SQLAzureShardManager implements ShardManager
$this
->
federationName
=
$params
[
'sharding'
][
'federationName'
];
$this
->
distributionKey
=
$params
[
'sharding'
][
'distributionKey'
];
$this
->
distributionType
=
$params
[
'sharding'
][
'distributionType'
];
$this
->
filteringEnabled
=
(
isset
(
$params
[
'sharding'
][
'filteringEnabled'
]))
?
(
bool
)
$params
[
'sharding'
][
'filteringEnabled'
]
:
false
;
$this
->
filteringEnabled
=
(
isset
(
$params
[
'sharding'
][
'filteringEnabled'
]))
?
(
bool
)
$params
[
'sharding'
][
'filteringEnabled'
]
:
false
;
}
/**
...
...
@@ -128,7 +128,7 @@ class SQLAzureShardManager implements ShardManager
*/
public
function
setFilteringEnabled
(
$flag
)
{
$this
->
filteringEnabled
=
(
bool
)
$flag
;
$this
->
filteringEnabled
=
(
bool
)
$flag
;
}
/**
...
...
@@ -191,6 +191,7 @@ class SQLAzureShardManager implements ShardManager
FROM sys.federation_member_distributions d
INNER JOIN sys.federations f ON f.federation_id = d.federation_id
WHERE f.name = "
.
$this
->
conn
->
quote
(
$this
->
federationName
);
return
$this
->
conn
->
fetchAll
(
$sql
);
}
...
...
lib/Doctrine/DBAL/Tools/Console/Command/ImportCommand.php
View file @
49927081
lib/Doctrine/DBAL/Tools/Console/Command/ReservedWordsCommand.php
View file @
49927081
...
...
@@ -118,7 +118,7 @@ EOT
/* @var $conn \Doctrine\DBAL\Connection */
$conn
=
$this
->
getHelper
(
'db'
)
->
getConnection
();
$keywordLists
=
(
array
)
$input
->
getOption
(
'list'
);
$keywordLists
=
(
array
)
$input
->
getOption
(
'list'
);
if
(
!
$keywordLists
)
{
$keywordLists
=
array
(
'mysql'
,
...
...
lib/Doctrine/DBAL/Types/DateTimeTzType.php
View file @
49927081
lib/Doctrine/DBAL/Types/VarDateTimeType.php
View file @
49927081
...
...
@@ -50,6 +50,7 @@ class VarDateTimeType extends DateTimeType
if
(
!
$val
)
{
throw
ConversionException
::
conversionFailed
(
$value
,
$this
->
getName
());
}
return
$val
;
}
}
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