projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
803ae6c
)
Fix DB adapter detection.
author
Jan Schneider
<jan@horde.org>
Tue, 18 Jan 2011 23:09:08 +0000
(
00:09
+0100)
committer
Jan Schneider
<jan@horde.org>
Tue, 18 Jan 2011 23:12:55 +0000
(
00:12
+0100)
kronolith/lib/Driver/Sql.php
patch
|
blob
|
history
diff --git
a/kronolith/lib/Driver/Sql.php
b/kronolith/lib/Driver/Sql.php
index
bc5c058
..
d92a158
100644
(file)
--- a/
kronolith/lib/Driver/Sql.php
+++ b/
kronolith/lib/Driver/Sql.php
@@
-868,13
+868,13
@@
class Kronolith_Driver_Sql extends Kronolith_Driver
/* Handle any database specific initialization code to run. */
try {
- switch ($this->_db->
dbsyntax
) {
- case '
oci8
':
+ switch ($this->_db->
adapterName()
) {
+ case '
Oracle
':
$query = "ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY-MM-DD HH24:MI:SS'";
$this->_db->execute($query);
break;
- case '
pgsql
':
+ case '
PDO_PostgreSQL
':
$query = "SET datestyle TO 'iso'";
$this->_db->execute($query);
break;