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
cfcad35f
Commit
cfcad35f
authored
Jun 15, 2011
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
2ddd5356
eb80a379
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
7 deletions
+14
-7
Configuration.php
lib/Doctrine/DBAL/Configuration.php
+1
-1
AbstractPlatform.php
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
+1
-0
MsSqlPlatform.php
lib/Doctrine/DBAL/Platforms/MsSqlPlatform.php
+2
-2
MySqlPlatform.php
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
+7
-1
PostgreSqlPlatform.php
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
+1
-1
Version.php
lib/Doctrine/DBAL/Version.php
+1
-1
doctrine-common
lib/vendor/doctrine-common
+1
-1
No files found.
lib/Doctrine/DBAL/Configuration.php
View file @
cfcad35f
...
@@ -46,7 +46,7 @@ class Configuration
...
@@ -46,7 +46,7 @@ class Configuration
*
*
* @param SQLLogger $logger
* @param SQLLogger $logger
*/
*/
public
function
setSQLLogger
(
SQLLogger
$logger
)
public
function
setSQLLogger
(
SQLLogger
$logger
=
null
)
{
{
$this
->
_attributes
[
'sqlLogger'
]
=
$logger
;
$this
->
_attributes
[
'sqlLogger'
]
=
$logger
;
}
}
...
...
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
View file @
cfcad35f
...
@@ -948,6 +948,7 @@ abstract class AbstractPlatform
...
@@ -948,6 +948,7 @@ abstract class AbstractPlatform
if
(
strtolower
(
$columnData
[
'type'
])
==
"string"
&&
$columnData
[
'length'
]
===
null
)
{
if
(
strtolower
(
$columnData
[
'type'
])
==
"string"
&&
$columnData
[
'length'
]
===
null
)
{
$columnData
[
'length'
]
=
255
;
$columnData
[
'length'
]
=
255
;
}
}
$columnData
[
'unsigned'
]
=
$column
->
getUnsigned
();
$columnData
[
'precision'
]
=
$column
->
getPrecision
();
$columnData
[
'precision'
]
=
$column
->
getPrecision
();
$columnData
[
'scale'
]
=
$column
->
getScale
();
$columnData
[
'scale'
]
=
$column
->
getScale
();
$columnData
[
'default'
]
=
$column
->
getDefault
();
$columnData
[
'default'
]
=
$column
->
getDefault
();
...
...
lib/Doctrine/DBAL/Platforms/MsSqlPlatform.php
View file @
cfcad35f
...
@@ -629,12 +629,12 @@ class MsSqlPlatform extends AbstractPlatform
...
@@ -629,12 +629,12 @@ class MsSqlPlatform extends AbstractPlatform
if
(
is_array
(
$item
))
{
if
(
is_array
(
$item
))
{
foreach
(
$item
as
$key
=>
$value
)
{
foreach
(
$item
as
$key
=>
$value
)
{
if
(
is_bool
(
$value
)
||
is_numeric
(
$item
))
{
if
(
is_bool
(
$value
)
||
is_numeric
(
$item
))
{
$item
[
$key
]
=
(
$value
)
?
'TRUE'
:
'FALSE'
;
$item
[
$key
]
=
(
$value
)
?
1
:
0
;
}
}
}
}
}
else
{
}
else
{
if
(
is_bool
(
$item
)
||
is_numeric
(
$item
))
{
if
(
is_bool
(
$item
)
||
is_numeric
(
$item
))
{
$item
=
(
$item
)
?
'TRUE'
:
'FALSE'
;
$item
=
(
$item
)
?
1
:
0
;
}
}
}
}
return
$item
;
return
$item
;
...
...
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
View file @
cfcad35f
...
@@ -369,7 +369,13 @@ class MySqlPlatform extends AbstractPlatform
...
@@ -369,7 +369,13 @@ class MySqlPlatform extends AbstractPlatform
* 'comment' => 'Foo',
* 'comment' => 'Foo',
* 'charset' => 'utf8',
* 'charset' => 'utf8',
* 'collate' => 'utf8_unicode_ci',
* 'collate' => 'utf8_unicode_ci',
* 'type' => 'innodb',
* 'engine' => 'innodb',
* 'foreignKeys' => array(
* new ForeignKeyConstraint(),
* new ForeignKeyConstraint(),
* new ForeignKeyConstraint(),
* // etc
* )
* );
* );
*
*
* @return void
* @return void
...
...
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
View file @
cfcad35f
...
@@ -686,7 +686,7 @@ class PostgreSqlPlatform extends AbstractPlatform
...
@@ -686,7 +686,7 @@ class PostgreSqlPlatform extends AbstractPlatform
*/
*/
public
function
getTruncateTableSQL
(
$tableName
,
$cascade
=
false
)
public
function
getTruncateTableSQL
(
$tableName
,
$cascade
=
false
)
{
{
return
'TRUNCATE '
.
$tableName
.
' '
.
(
$cascade
)
?
'CASCADE'
:
''
;
return
'TRUNCATE '
.
$tableName
.
' '
.
(
(
$cascade
)
?
'CASCADE'
:
''
)
;
}
}
public
function
getReadLockSQL
()
public
function
getReadLockSQL
()
...
...
lib/Doctrine/DBAL/Version.php
View file @
cfcad35f
...
@@ -36,7 +36,7 @@ class Version
...
@@ -36,7 +36,7 @@ class Version
/**
/**
* Current Doctrine Version
* Current Doctrine Version
*/
*/
const
VERSION
=
'2.1.0-DEV'
;
const
VERSION
=
'2.1.0
BETA2
-DEV'
;
/**
/**
* Compares a Doctrine version with the current one.
* Compares a Doctrine version with the current one.
...
...
doctrine-common
@
3103408a
Subproject commit
a46c6180f96647fdd66e2c8f2771d61ecebe6a3f
Subproject commit
3103408ac394e8f9948431c0302a09faf352764e
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