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
af09158d
Commit
af09158d
authored
Jun 17, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
b8353881
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
Db2.php
lib/Doctrine/Sequence/Db2.php
+3
-3
Sqlite.php
lib/Doctrine/Sequence/Sqlite.php
+1
-0
No files found.
lib/Doctrine/Sequence/Db2.php
View file @
af09158d
...
...
@@ -48,7 +48,7 @@ class Doctrine_Sequence_Db2 extends Doctrine_Sequence
.
' AS VAL FROM SYSIBM.SYSDUMMY1'
;
$stmt
=
$this
->
query
(
$sql
);
$result
=
$stmt
->
fetchAll
(
Zend_Db
::
FETCH_ASSOC
);
$result
=
$stmt
->
fetchAll
(
Doctrine
::
FETCH_ASSOC
);
if
(
$result
)
{
return
$result
[
0
][
'VAL'
];
}
else
{
...
...
@@ -72,7 +72,7 @@ class Doctrine_Sequence_Db2 extends Doctrine_Sequence
.
$this
->
quoteIdentifier
(
$this
->
conn
->
formatter
->
getSequenceName
(
$sequenceName
))
.
' AS VAL FROM SYSIBM.SYSDUMMY1'
;
$stmt
=
$this
->
query
(
$sql
);
$result
=
$stmt
->
fetchAll
(
Zend_Db
::
FETCH_ASSOC
);
$result
=
$stmt
->
fetchAll
(
Doctrine
::
FETCH_ASSOC
);
if
(
$result
)
{
return
$result
[
0
][
'VAL'
];
}
else
{
...
...
@@ -113,7 +113,7 @@ class Doctrine_Sequence_Db2 extends Doctrine_Sequence
$sql
=
'SELECT IDENTITY_VAL_LOCAL() AS VAL FROM SYSIBM.SYSDUMMY1'
;
$stmt
=
$this
->
query
(
$sql
);
$result
=
$stmt
->
fetchAll
(
Zend_Db
::
FETCH_ASSOC
);
$result
=
$stmt
->
fetchAll
(
Doctrine
::
FETCH_ASSOC
);
if
(
$result
)
{
return
$result
[
0
][
'VAL'
];
}
else
{
...
...
lib/Doctrine/Sequence/Sqlite.php
View file @
af09158d
...
...
@@ -65,6 +65,7 @@ class Doctrine_Sequence_Sqlite extends Doctrine_Sequence
// First ID of a newly created sequence is 1
return
1
;
}
throw
$e
;
}
$value
=
$this
->
conn
->
getDbh
()
->
lastInsertId
();
...
...
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