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
05cf2cd1
Commit
05cf2cd1
authored
Oct 31, 2006
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sqlite connection driver updated
parent
c6bd1147
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
3 deletions
+44
-3
Mysql.php
lib/Doctrine/Connection/Mysql.php
+3
-1
Oracle.php
lib/Doctrine/Connection/Oracle.php
+3
-1
Sqlite.php
lib/Doctrine/Connection/Sqlite.php
+38
-1
No files found.
lib/Doctrine/Connection/Mysql.php
View file @
05cf2cd1
...
@@ -33,7 +33,9 @@ class Doctrine_Connection_Mysql extends Doctrine_Connection_Common {
...
@@ -33,7 +33,9 @@ class Doctrine_Connection_Mysql extends Doctrine_Connection_Common {
protected
$driverName
=
'Mysql'
;
protected
$driverName
=
'Mysql'
;
/**
/**
* the constructor
* the constructor
* @param PDO $pdo -- database handle
*
* @param Doctrine_Manager $manager
* @param PDO $pdo database handle
*/
*/
public
function
__construct
(
Doctrine_Manager
$manager
,
PDO
$pdo
)
{
public
function
__construct
(
Doctrine_Manager
$manager
,
PDO
$pdo
)
{
$pdo
->
setAttribute
(
PDO
::
ATTR_EMULATE_PREPARES
,
true
);
$pdo
->
setAttribute
(
PDO
::
ATTR_EMULATE_PREPARES
,
true
);
...
...
lib/Doctrine/Connection/Oracle.php
View file @
05cf2cd1
...
@@ -33,7 +33,7 @@ class Doctrine_Connection_Oracle extends Doctrine_Connection {
...
@@ -33,7 +33,7 @@ class Doctrine_Connection_Oracle extends Doctrine_Connection {
protected
$driverName
=
'Oracle'
;
protected
$driverName
=
'Oracle'
;
public
function
__construct
()
{
public
function
__construct
(
Doctrine_Manager
$manager
,
PDO
$pdo
)
{
$this
->
supported
=
array
(
$this
->
supported
=
array
(
'sequences'
=>
true
,
'sequences'
=>
true
,
'indexes'
=>
true
,
'indexes'
=>
true
,
...
@@ -62,6 +62,8 @@ class Doctrine_Connection_Oracle extends Doctrine_Connection {
...
@@ -62,6 +62,8 @@ class Doctrine_Connection_Oracle extends Doctrine_Connection {
$this
->
options
[
'default_tablespace'
]
=
false
;
$this
->
options
[
'default_tablespace'
]
=
false
;
$this
->
options
[
'default_text_field_length'
]
=
2000
;
$this
->
options
[
'default_text_field_length'
]
=
2000
;
$this
->
options
[
'result_prefetching'
]
=
false
;
$this
->
options
[
'result_prefetching'
]
=
false
;
parent
::
__construct
(
$manager
,
$pdo
);
}
}
/**
/**
* Adds an driver-specific LIMIT clause to the query
* Adds an driver-specific LIMIT clause to the query
...
...
lib/Doctrine/Connection/Sqlite.php
View file @
05cf2cd1
...
@@ -32,6 +32,43 @@ class Doctrine_Connection_Sqlite extends Doctrine_Connection_Common {
...
@@ -32,6 +32,43 @@ class Doctrine_Connection_Sqlite extends Doctrine_Connection_Common {
* @var string $driverName the name of this connection driver
* @var string $driverName the name of this connection driver
*/
*/
protected
$driverName
=
'Sqlite'
;
protected
$driverName
=
'Sqlite'
;
/**
* the constructor
*
* @param Doctrine_Manager $manager
* @param PDO $pdo database handle
*/
public
function
__construct
(
Doctrine_Manager
$manager
,
PDO
$pdo
)
{
$this
->
supported
=
array
(
'sequences'
=>
'emulated'
,
'indexes'
=>
true
,
'affected_rows'
=>
true
,
'summary_functions'
=>
true
,
'order_by_text'
=>
true
,
'current_id'
=>
'emulated'
,
'limit_queries'
=>
true
,
'LOBs'
=>
true
,
'replace'
=>
true
,
'transactions'
=>
true
,
'savepoints'
=>
false
,
'sub_selects'
=>
true
,
'auto_increment'
=>
true
,
'primary_key'
=>
true
,
'result_introspection'
=>
false
,
// not implemented
'prepared_statements'
=>
'emulated'
,
'identifier_quoting'
=>
true
,
'pattern_escaping'
=>
false
,
);
$this
->
options
[
'base_transaction_name'
]
=
'___php_MDB2_sqlite_auto_commit_off'
;
$this
->
options
[
'fixed_float'
]
=
0
;
$this
->
options
[
'database_path'
]
=
''
;
$this
->
options
[
'database_extension'
]
=
''
;
$this
->
options
[
'server_version'
]
=
''
;
parent
::
__construct
(
$manager
,
$pdo
);
}
/**
/**
* Set the transacton isolation level.
* Set the transacton isolation level.
*
*
...
@@ -42,7 +79,7 @@ class Doctrine_Connection_Sqlite extends Doctrine_Connection_Common {
...
@@ -42,7 +79,7 @@ class Doctrine_Connection_Sqlite extends Doctrine_Connection_Common {
* SERIALIZABLE (prevents phantom reads)
* SERIALIZABLE (prevents phantom reads)
* @return void
* @return void
*/
*/
function
setTransactionIsolation
(
$isolation
)
{
public
function
setTransactionIsolation
(
$isolation
)
{
switch
(
$isolation
)
{
switch
(
$isolation
)
{
case
'READ UNCOMMITTED'
:
case
'READ UNCOMMITTED'
:
$isolation
=
0
;
$isolation
=
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