Changeset 6150 for temp/trunk/data
- Timestamp:
- 2006/10/12 19:08:44 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/data/lib/slib.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/lib/slib.php
r6149 r6150 20 20 21 21 /* ¥Æ¡¼¥Ö¥ë¤Î¸ºß¥Á¥§¥Ã¥¯ */ 22 function sfTabaleExists($table_name ) {22 function sfTabaleExists($table_name, $db_type=DB_TYPE) { 23 23 $objQuery = new SC_Query(); 24 24 // postgresql¤Èmysql¤È¤Ç½èÍý¤òʬ¤±¤ë 25 if ( DB_TYPE== "pgsql") {25 if ($db_type == "pgsql") { 26 26 $sql = "SELECT 27 27 relname … … 39 39 $flg = false; 40 40 } 41 }else if ( DB_TYPE== "mysql") {41 }else if ($db_type == "mysql") { 42 42 $sql = "SHOW TABLE STATUS LIKE ?"; 43 43 $arrRet = $objQuery->getAll($sql, array($table_name));
Note: See TracChangeset
for help on using the changeset viewer.
