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
231be655
Commit
231be655
authored
Nov 19, 2006
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
5a5934db
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
15 deletions
+13
-15
Mssql.php
lib/Doctrine/Connection/Mssql.php
+11
-13
Mysql.php
lib/Doctrine/Connection/Mysql.php
+2
-2
No files found.
lib/Doctrine/Connection/Mssql.php
View file @
231be655
...
...
@@ -153,11 +153,9 @@ class Doctrine_Connection_Mssql extends Doctrine_Connection {
*
* @param string $table name of the table into which a new row was inserted
* @param string $field name of the field into which a new row was inserted
* @return mixed MDB2 Error Object or id
* @access public
* @return integer
*/
function
lastInsertID
(
$table
=
null
,
$field
=
null
)
{
public
function
lastInsertID
(
$table
=
null
,
$field
=
null
)
{
$server_info
=
$this
->
getServerVersion
();
if
(
is_array
(
$server_info
)
&&
!
is_null
(
$server_info
[
'major'
])
...
...
@@ -167,7 +165,7 @@ class Doctrine_Connection_Mssql extends Doctrine_Connection {
$query
=
"SELECT @@IDENTITY"
;
}
return
$this
->
queryOne
(
$query
,
'integer'
);
return
$this
->
queryOne
(
$query
);
}
}
lib/Doctrine/Connection/Mysql.php
View file @
231be655
...
...
@@ -80,7 +80,7 @@ class Doctrine_Connection_Mysql extends Doctrine_Connection_Common {
*
* @return integer
*/
public
function
nextI
D
(
$seqName
,
$ondemand
=
true
)
{
public
function
nextI
d
(
$seqName
,
$ondemand
=
true
)
{
$sequenceName
=
$this
->
quoteIdentifier
(
$this
->
getSequenceName
(
$seqName
),
true
);
$seqcolName
=
$this
->
quoteIdentifier
(
$this
->
getAttribute
(
Doctrine
::
ATTR_SEQCOL_NAME
),
true
);
$query
=
'INSERT INTO '
.
$sequenceName
.
' ('
.
$seqcolName
.
') VALUES (NULL)'
;
...
...
@@ -99,7 +99,7 @@ class Doctrine_Connection_Mysql extends Doctrine_Connection_Common {
* @param string $seq_name name of the sequence
* @return integer
*/
public
function
currI
D
(
$seqName
)
{
public
function
currI
d
(
$seqName
)
{
$sequenceName
=
$this
->
quoteIdentifier
(
$this
->
getSequenceName
(
$seqName
),
true
);
$seqcolName
=
$this
->
quoteIdentifier
(
$this
->
options
[
'seqcol_name'
],
true
);
$query
=
'SELECT MAX('
.
$seqcolName
.
') FROM '
.
$sequenceName
;
...
...
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