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
6f893290
Commit
6f893290
authored
Jul 31, 2011
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'DDC-1282'
parents
ec124d99
8574e5a7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
16 deletions
+16
-16
MySqlPlatform.php
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
+4
-4
OraclePlatform.php
lib/Doctrine/DBAL/Platforms/OraclePlatform.php
+4
-4
PostgreSqlPlatform.php
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
+4
-4
SqlitePlatform.php
lib/Doctrine/DBAL/Platforms/SqlitePlatform.php
+4
-4
No files found.
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
View file @
6f893290
...
@@ -108,22 +108,22 @@ class MySqlPlatform extends AbstractPlatform
...
@@ -108,22 +108,22 @@ class MySqlPlatform extends AbstractPlatform
public
function
getDateAddDaysExpression
(
$date
,
$days
)
public
function
getDateAddDaysExpression
(
$date
,
$days
)
{
{
return
'DATE_ADD('
.
$date
.
', INTERVAL '
.
(
int
)
$days
.
' DAY)'
;
return
'DATE_ADD('
.
$date
.
', INTERVAL '
.
$days
.
' DAY)'
;
}
}
public
function
getDateSubDaysExpression
(
$date
,
$days
)
public
function
getDateSubDaysExpression
(
$date
,
$days
)
{
{
return
'DATE_SUB('
.
$date
.
', INTERVAL '
.
(
int
)
$days
.
' DAY)'
;
return
'DATE_SUB('
.
$date
.
', INTERVAL '
.
$days
.
' DAY)'
;
}
}
public
function
getDateAddMonthExpression
(
$date
,
$months
)
public
function
getDateAddMonthExpression
(
$date
,
$months
)
{
{
return
'DATE_ADD('
.
$date
.
', INTERVAL '
.
(
int
)
$months
.
' MONTH)'
;
return
'DATE_ADD('
.
$date
.
', INTERVAL '
.
$months
.
' MONTH)'
;
}
}
public
function
getDateSubMonthExpression
(
$date
,
$months
)
public
function
getDateSubMonthExpression
(
$date
,
$months
)
{
{
return
'DATE_SUB('
.
$date
.
', INTERVAL '
.
(
int
)
$months
.
' MONTH)'
;
return
'DATE_SUB('
.
$date
.
', INTERVAL '
.
$months
.
' MONTH)'
;
}
}
public
function
getListDatabasesSQL
()
public
function
getListDatabasesSQL
()
...
...
lib/Doctrine/DBAL/Platforms/OraclePlatform.php
View file @
6f893290
...
@@ -118,22 +118,22 @@ class OraclePlatform extends AbstractPlatform
...
@@ -118,22 +118,22 @@ class OraclePlatform extends AbstractPlatform
public
function
getDateAddDaysExpression
(
$date
,
$days
)
public
function
getDateAddDaysExpression
(
$date
,
$days
)
{
{
return
'('
.
$date
.
'+'
.
(
int
)
$days
.
')'
;
return
'('
.
$date
.
'+'
.
$days
.
')'
;
}
}
public
function
getDateSubDaysExpression
(
$date
,
$days
)
public
function
getDateSubDaysExpression
(
$date
,
$days
)
{
{
return
'('
.
$date
.
'-'
.
(
int
)
$days
.
')'
;
return
'('
.
$date
.
'-'
.
$days
.
')'
;
}
}
public
function
getDateAddMonthExpression
(
$date
,
$months
)
public
function
getDateAddMonthExpression
(
$date
,
$months
)
{
{
return
"ADD_MONTHS("
.
$date
.
", "
.
(
int
)
$months
.
")"
;
return
"ADD_MONTHS("
.
$date
.
", "
.
$months
.
")"
;
}
}
public
function
getDateSubMonthExpression
(
$date
,
$months
)
public
function
getDateSubMonthExpression
(
$date
,
$months
)
{
{
return
"ADD_MONTHS("
.
$date
.
", -"
.
(
int
)
$months
.
")"
;
return
"ADD_MONTHS("
.
$date
.
", -"
.
$months
.
")"
;
}
}
/**
/**
...
...
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
View file @
6f893290
...
@@ -99,22 +99,22 @@ class PostgreSqlPlatform extends AbstractPlatform
...
@@ -99,22 +99,22 @@ class PostgreSqlPlatform extends AbstractPlatform
public
function
getDateAddDaysExpression
(
$date
,
$days
)
public
function
getDateAddDaysExpression
(
$date
,
$days
)
{
{
return
"("
.
$date
.
"+ interval '"
.
(
int
)
$days
.
" day')"
;
return
"("
.
$date
.
"+ interval '"
.
$days
.
" day')"
;
}
}
public
function
getDateSubDaysExpression
(
$date
,
$days
)
public
function
getDateSubDaysExpression
(
$date
,
$days
)
{
{
return
"("
.
$date
.
"- interval '"
.
(
int
)
$days
.
" day')"
;
return
"("
.
$date
.
"- interval '"
.
$days
.
" day')"
;
}
}
public
function
getDateAddMonthExpression
(
$date
,
$months
)
public
function
getDateAddMonthExpression
(
$date
,
$months
)
{
{
return
"("
.
$date
.
"+ interval '"
.
(
int
)
$months
.
" month')"
;
return
"("
.
$date
.
"+ interval '"
.
$months
.
" month')"
;
}
}
public
function
getDateSubMonthExpression
(
$date
,
$months
)
public
function
getDateSubMonthExpression
(
$date
,
$months
)
{
{
return
"("
.
$date
.
"- interval '"
.
(
int
)
$months
.
" month')"
;
return
"("
.
$date
.
"- interval '"
.
$months
.
" month')"
;
}
}
/**
/**
...
...
lib/Doctrine/DBAL/Platforms/SqlitePlatform.php
View file @
6f893290
...
@@ -132,22 +132,22 @@ class SqlitePlatform extends AbstractPlatform
...
@@ -132,22 +132,22 @@ class SqlitePlatform extends AbstractPlatform
public
function
getDateAddDaysExpression
(
$date
,
$days
)
public
function
getDateAddDaysExpression
(
$date
,
$days
)
{
{
return
"DATE("
.
$date
.
",'+"
.
(
int
)
$
days
.
" day')"
;
return
"DATE("
.
$date
.
",'+"
.
days
.
" day')"
;
}
}
public
function
getDateSubDaysExpression
(
$date
,
$days
)
public
function
getDateSubDaysExpression
(
$date
,
$days
)
{
{
return
"DATE("
.
$date
.
",'-"
.
(
int
)
$days
.
" day')"
;
return
"DATE("
.
$date
.
",'-"
.
$days
.
" day')"
;
}
}
public
function
getDateAddMonthExpression
(
$date
,
$months
)
public
function
getDateAddMonthExpression
(
$date
,
$months
)
{
{
return
"DATE("
.
$date
.
",'+"
.
(
int
)
$months
.
" month')"
;
return
"DATE("
.
$date
.
",'+"
.
$months
.
" month')"
;
}
}
public
function
getDateSubMonthExpression
(
$date
,
$months
)
public
function
getDateSubMonthExpression
(
$date
,
$months
)
{
{
return
"DATE("
.
$date
.
",'-"
.
(
int
)
$months
.
" month')"
;
return
"DATE("
.
$date
.
",'-"
.
$months
.
" month')"
;
}
}
protected
function
_getTransactionIsolationLevelSQL
(
$level
)
protected
function
_getTransactionIsolationLevelSQL
(
$level
)
...
...
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