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
d2f081de
Commit
d2f081de
authored
Apr 29, 2014
by
Guilherme Blanco
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #589 from JeroenDeDauw/param
Add missing @param tags
parents
0bd1c3b8
65ca16cb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
OraclePlatform.php
lib/Doctrine/DBAL/Platforms/OraclePlatform.php
+4
-2
PostgreSqlPlatform.php
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
+7
-4
No files found.
lib/Doctrine/DBAL/Platforms/OraclePlatform.php
View file @
d2f081de
...
...
@@ -196,7 +196,7 @@ class OraclePlatform extends AbstractPlatform
/**
* {@inheritDoc}
*/
public
function
getAlterSequenceSQL
(
\Doctrine\DBAL\Schema\
Sequence
$sequence
)
public
function
getAlterSequenceSQL
(
Sequence
$sequence
)
{
return
'ALTER SEQUENCE '
.
$sequence
->
getQuotedName
(
$this
)
.
' INCREMENT BY '
.
$sequence
->
getAllocationSize
()
...
...
@@ -206,9 +206,11 @@ class OraclePlatform extends AbstractPlatform
/**
* Cache definition for sequences
*
* @param Sequence $sequence
*
* @return string
*/
private
function
getSequenceCacheSQL
(
\Doctrine\DBAL\Schema\
Sequence
$sequence
)
private
function
getSequenceCacheSQL
(
Sequence
$sequence
)
{
if
(
$sequence
->
getCache
()
===
0
)
{
return
' NOCACHE'
;
...
...
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
View file @
d2f081de
...
...
@@ -22,6 +22,7 @@ namespace Doctrine\DBAL\Platforms;
use
Doctrine\DBAL\Schema\Column
;
use
Doctrine\DBAL\Schema\ColumnDiff
;
use
Doctrine\DBAL\Schema\Index
;
use
Doctrine\DBAL\Schema\Sequence
;
use
Doctrine\DBAL\Schema\TableDiff
;
use
Doctrine\DBAL\Types\BinaryType
;
use
Doctrine\DBAL\Types\BlobType
;
...
...
@@ -604,7 +605,7 @@ class PostgreSqlPlatform extends AbstractPlatform
/**
* {@inheritDoc}
*/
public
function
getCreateSequenceSQL
(
\Doctrine\DBAL\Schema\
Sequence
$sequence
)
public
function
getCreateSequenceSQL
(
Sequence
$sequence
)
{
return
'CREATE SEQUENCE '
.
$sequence
->
getQuotedName
(
$this
)
.
' INCREMENT BY '
.
$sequence
->
getAllocationSize
()
.
...
...
@@ -616,7 +617,7 @@ class PostgreSqlPlatform extends AbstractPlatform
/**
* {@inheritDoc}
*/
public
function
getAlterSequenceSQL
(
\Doctrine\DBAL\Schema\
Sequence
$sequence
)
public
function
getAlterSequenceSQL
(
Sequence
$sequence
)
{
return
'ALTER SEQUENCE '
.
$sequence
->
getQuotedName
(
$this
)
.
' INCREMENT BY '
.
$sequence
->
getAllocationSize
()
.
...
...
@@ -626,9 +627,11 @@ class PostgreSqlPlatform extends AbstractPlatform
/**
* Cache definition for sequences
*
* @param Sequence $sequence
*
* @return string
*/
private
function
getSequenceCacheSQL
(
\Doctrine\DBAL\Schema\
Sequence
$sequence
)
private
function
getSequenceCacheSQL
(
Sequence
$sequence
)
{
if
(
$sequence
->
getCache
()
>
1
)
{
return
' CACHE '
.
$sequence
->
getCache
();
...
...
@@ -642,7 +645,7 @@ class PostgreSqlPlatform extends AbstractPlatform
*/
public
function
getDropSequenceSQL
(
$sequence
)
{
if
(
$sequence
instanceof
\Doctrine\DBAL\Schema\
Sequence
)
{
if
(
$sequence
instanceof
Sequence
)
{
$sequence
=
$sequence
->
getQuotedName
(
$this
);
}
return
'DROP SEQUENCE '
.
$sequence
.
' CASCADE'
;
...
...
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