Changeset 9413 for temp/trunk/data/lib/slib.php
- Timestamp:
- 2006/11/29 18:08:19 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/data/lib/slib.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/lib/slib.php
r9412 r9413 99 99 // Àµ¾ï¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç 100 100 if(!$objQuery->isError()) { 101 $arrRet = sfGetColumnList($table_name, $objQuery); 101 list($db_type) = split(":", $dsn); 102 103 $arrRet = sfGetColumnList($table_name, $objQuery, $db_type); 102 104 if(count($arrRet) > 0) { 103 105 if(!in_array($col_name, $arrRet)){ … … 107 109 108 110 /* 109 list($db_type) = split(":", $dsn);110 111 // postgresql¤Èmysql¤È¤Ç½èÍý¤òʬ¤±¤ë 111 112 if ($db_type == "pgsql") { … … 146 147 147 148 // ¥Æ¡¼¥Ö¥ë¤Î¥«¥é¥à°ìÍ÷¤ò¼èÆÀ¤¹¤ë 148 function sfGetColumnList($table_name, $objQuery = "" ){149 function sfGetColumnList($table_name, $objQuery = "", $db_type = DB_TYPE){ 149 150 if($objQuery == "") $objQuery = new SC_Query(); 150 151 $arrRet = array();
Note: See TracChangeset
for help on using the changeset viewer.
