Changeset 20507 for branches/version-2_5-dev/data/class/db/dbfactory
- Timestamp:
- 2011/03/04 23:24:33 (16 years ago)
- Location:
- branches/version-2_5-dev/data/class/db/dbfactory
- Files:
-
- 2 edited
-
SC_DB_DBFactory_MYSQL.php (modified) (5 diffs)
-
SC_DB_DBFactory_PGSQL.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/db/dbfactory/SC_DB_DBFactory_MYSQL.php
r20381 r20507 48 48 */ 49 49 function sfGetDBVersion($dsn = "") { 50 $objQuery =& SC_Query ::getSingletonInstance();50 $objQuery =& SC_Query_Ex::getSingletonInstance(); 51 51 $val = $objQuery->getOne("select version()"); 52 52 return "MySQL " . $val; … … 80 80 */ 81 81 function getCharSet() { 82 $objQuery =& SC_Query ::getSingletonInstance();82 $objQuery =& SC_Query_Ex::getSingletonInstance(); 83 83 $arrRet = $objQuery->getAll("SHOW VARIABLES LIKE 'char%'"); 84 84 return $arrRet; … … 214 214 */ 215 215 function sfGetColumnList($table_name) { 216 $objQuery =& SC_Query ::getSingletonInstance();216 $objQuery =& SC_Query_Ex::getSingletonInstance(); 217 217 $sql = "SHOW COLUMNS FROM " . $table_name; 218 218 $arrColList = $objQuery->getAll($sql); … … 230 230 */ 231 231 function findTableNames($expression = "") { 232 $objQuery =& SC_Query ::getSingletonInstance();232 $objQuery =& SC_Query_Ex::getSingletonInstance(); 233 233 $sql = "SHOW TABLES LIKE ". $objQuery->quote("%" . $expression . "%"); 234 234 $arrColList = $objQuery->getAll($sql); … … 302 302 */ 303 303 function sfGetCreateIndexDefinition($table, $name, $definition) { 304 $objQuery =& SC_Query ::getSingletonInstance();304 $objQuery =& SC_Query_Ex::getSingletonInstance(); 305 305 $arrTblInfo = $objQuery->getTableInfo($table); 306 306 foreach($arrTblInfo as $fieldInfo) { -
branches/version-2_5-dev/data/class/db/dbfactory/SC_DB_DBFactory_PGSQL.php
r20428 r20507 46 46 */ 47 47 function sfGetDBVersion($dsn = "") { 48 $objQuery =& SC_Query ::getSingletonInstance();48 $objQuery =& SC_Query_Ex::getSingletonInstance(); 49 49 $val = $objQuery->getOne("select version()"); 50 50 $arrLine = explode(" " , $val); … … 196 196 */ 197 197 function sfGetColumnList($table_name) { 198 $objQuery =& SC_Query ::getSingletonInstance();198 $objQuery =& SC_Query_Ex::getSingletonInstance(); 199 199 $sql = " SELECT a.attname " 200 200 . " FROM pg_class c, pg_attribute a " … … 220 220 */ 221 221 function findTableNames($expression = "") { 222 $objQuery =& SC_Query ::getSingletonInstance();222 $objQuery =& SC_Query_Ex::getSingletonInstance(); 223 223 $sql = " SELECT c.relname AS name, " 224 224 . " CASE c.relkind "
Note: See TracChangeset
for help on using the changeset viewer.
