projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91601bc
)
UpdateDatabase/MysqlEngineCharset.php
author
Alan Knowles
<alan@roojs.com>
Thu, 22 Jun 2017 06:26:57 +0000
(14:26 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 22 Jun 2017 06:26:57 +0000
(14:26 +0800)
UpdateDatabase/MysqlEngineCharset.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase/MysqlEngineCharset.php
b/UpdateDatabase/MysqlEngineCharset.php
index
c840866
..
a5d18a5
100644
(file)
--- a/
UpdateDatabase/MysqlEngineCharset.php
+++ b/
UpdateDatabase/MysqlEngineCharset.php
@@
-114,10
+114,14
@@
class Pman_Core_UpdateDatabase_MysqlEngineCharset {
// first check if database is using this format.
-
- $db = DB_DataObject::factory('core_enum')->getDatabaseConnection();
- $views = $db->getListOf( 'views'); // needs updated pear...
-
+ $dbo = DB_DataObject::factory('core_enum');
+ if (is_a($dbo, 'PDO_DataObject')) {
+
+
+ } else {
+ $db = DB_DataObject::factory('core_enum')->getDatabaseConnection();
+ $views = $db->getListOf( 'views'); // needs updated pear...
+ }