Changeset 5127
- Timestamp:
- 2006/09/19 13:17:59 (20 years ago)
- Location:
- temp/trunk/html/admin/contents
- Files:
-
- 2 edited
-
csv_sql.php (modified) (2 diffs)
-
inquiry.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/contents/csv_sql.php
r5115 r5127 218 218 $objQuery = new SC_Query(); 219 219 $arrRet = array(); // ·ë²Ì¼èÆÀÍÑ 220 /*221 $sql = "";222 $sql .= " SELECT";223 $sql .= " a.attname,";224 $sql .= " a.attnum as fldnum, ";225 $sql .= " (select case count(description) when 0 then a.attname else (select a.attname || ':' || description from pg_description where a.attrelid=objoid and a.attnum=objsubid ) end from pg_description where a.attrelid=objoid and a.attnum=objsubid ) as description ";226 $sql .= " FROM";227 $sql .= " pg_class c,";228 $sql .= " pg_attribute a left join pg_description e on (a.attrelid=e.objoid and a.attnum=e.objsubid) ";229 $sql .= " ";230 $sql .= " WHERE";231 $sql .= " (c.relname=?) AND";232 $sql .= " (c.oid=a.attrelid) AND";233 $sql .= " a.attnum > 0";234 $sql .= " ORDER BY";235 $sql .= " fldnum";236 $sql .= " ";237 $arrRet = $objQuery->getAll($sql, array($selectTable));238 */239 220 $sql = ""; 240 221 $sql .= " SELECT column_name, description FROM dtb_table_comment WHERE table_name = ? AND column_name IS NOT NULL"; … … 294 275 $objErr = new SC_CheckError(); 295 276 $objErr->doFunc( array("̾¾Î", "name"), array("EXIST_CHECK") ); 296 $objErr->doFunc( array("SQLʸ", "sql" ), array("EXIST_CHECK") );277 $objErr->doFunc( array("SQLʸ", "sql", "30000"), array("EXIST_CHECK", "MAX_LENGTH_CHECK") ); 297 278 298 279 // SQL¤ÎÂÅÅöÀ¥Á¥§¥Ã¥¯ -
temp/trunk/html/admin/contents/inquiry.php
r5126 r5127 119 119 } else { 120 120 121 sfprintr($error);122 121 //¥¨¥é¡¼É½¼¨ 123 122 $objPage->ERROR = $error;
Note: See TracChangeset
for help on using the changeset viewer.
