Changeset 9417 for temp/trunk/data/lib
- Timestamp:
- 2006/11/29 18:11:21 (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
r9416 r9417 101 101 list($db_type) = split(":", $dsn); 102 102 103 // ¥«¥é¥à¥ê¥¹¥È¤ò¼èÆÀ 103 104 $arrRet = sfGetColumnList($table_name, $objQuery, $db_type); 104 105 if(count($arrRet) > 0) { … … 107 108 } 108 109 } 109 110 /*111 // postgresql¤Èmysql¤È¤Ç½èÍý¤òʬ¤±¤ë112 if ($db_type == "pgsql") {113 $sql = "SELECT114 a.attname115 FROM116 pg_class c, pg_attribute a117 WHERE118 c.relname=? AND119 a.attname=? AND120 c.oid=a.attrelid AND121 a.attnum > 0122 ORDER BY123 a.attnum";124 $arrRet = $objQuery->getAll($sql, array($table_name, $col_name));125 if(count($arrRet) > 0) {126 return true;127 }128 }else if ($db_type == "mysql") {129 $arrRet = sfGetColumnList($table_name, $objQuery);130 if(count($arrRet) > 0) {131 if(!in_array($col_name, $arrRet)){132 return true;133 }134 }135 }136 */137 110 } 138 111
Note: See TracChangeset
for help on using the changeset viewer.
