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
a07f3d31
Unverified
Commit
a07f3d31
authored
Nov 01, 2017
by
belgattitude
Committed by
Luís Cobucci
Nov 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes backslash escaping (still present)
parent
afee87d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
MySqlSchemaManager.php
lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php
+2
-4
No files found.
lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php
View file @
a07f3d31
...
...
@@ -219,22 +219,20 @@ class MySqlSchemaManager extends AbstractSchemaManager
* - CURRENT_TIMESTAMP, CURRENT_TIME, CURRENT_DATE are stored in information_schema
* as current_timestamp(), currdate(), currtime()
* - Note: Quoted 'NULL' is not enforced by Maria, it is technically possible to have
* null in
stead
(see https://jira.mariadb.org/browse/MDEV-14053)
* null in
some circumstances
(see https://jira.mariadb.org/browse/MDEV-14053)
*
* @link https://mariadb.com/kb/en/library/information-schema-columns-table/
* @link https://jira.mariadb.org/browse/MDEV-13132
* @link https://jira.mariadb.org/browse/MDEV-14053
*
* @param null|string $columnDefault default value as stored in information_schema for MariaDB >= 10.2.7
*/
private
function
getMariaDb1027ColumnDefault
(
MariaDb1027Platform
$platform
,
?
string
$columnDefault
)
:
?
string
{
if
(
$columnDefault
===
'NULL'
||
$columnDefault
===
null
)
{
return
null
;
}
if
(
$columnDefault
[
0
]
===
"'"
)
{
return
stripslashes
(
preg_replace
(
'/^\'(.*)\'$/'
,
'$1'
,
$columnDefault
)
);
return
preg_replace
(
'/^\'(.*)\'$/'
,
'$1'
,
$columnDefault
);
}
switch
(
$columnDefault
)
{
case
'current_timestamp()'
:
...
...
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