- Timestamp:
- 2011/03/04 23:24:33 (13 years ago)
- File:
-
- 1 edited
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) {
Note: See TracChangeset
for help on using the changeset viewer.