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
051077c6
Commit
051077c6
authored
Nov 01, 2006
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sqlite driver updated
parent
dcc59843
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
Sqlite.php
lib/Doctrine/Connection/Sqlite.php
+17
-2
No files found.
lib/Doctrine/Connection/Sqlite.php
View file @
051077c6
...
@@ -24,7 +24,10 @@ Doctrine::autoload("Doctrine_Connection_Common");
...
@@ -24,7 +24,10 @@ Doctrine::autoload("Doctrine_Connection_Common");
*
*
* @package Doctrine ORM
* @package Doctrine ORM
* @url www.phpdoctrine.com
* @url www.phpdoctrine.com
* @license LGPL
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @author Konsta Vesterinen
* @author Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
* @version $Id$
*/
*/
class
Doctrine_Connection_Sqlite
extends
Doctrine_Connection_Common
{
class
Doctrine_Connection_Sqlite
extends
Doctrine_Connection_Common
{
...
@@ -96,6 +99,18 @@ class Doctrine_Connection_Sqlite extends Doctrine_Connection_Common {
...
@@ -96,6 +99,18 @@ class Doctrine_Connection_Sqlite extends Doctrine_Connection_Common {
$query
=
"PRAGMA read_uncommitted=
$isolation
"
;
$query
=
"PRAGMA read_uncommitted=
$isolation
"
;
return
$this
->
_doQuery
(
$query
,
true
);
return
$this
->
_doQuery
(
$query
,
true
);
}
}
/**
* Returns the current id of a sequence
*
* @param string $seq_name name of the sequence
* @return integer the current id in the given sequence
*/
public
function
currId
(
$sequence
)
{
$sequence
=
$this
->
quoteIdentifier
(
$sequence
,
true
);
$seqColumn
=
$this
->
quoteIdentifier
(
$this
->
options
[
'seqcol_name'
],
true
);
$stmt
=
$this
->
dbh
->
query
(
'SELECT MAX('
.
$seqColumn
.
') FROM '
.
$sequence
);
$data
=
$stmt
->
fetch
(
PDO
::
FETCH_NUM
);
return
$data
[
0
];
}
}
}
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