Changeset 15001 for branches


Ignore:
Timestamp:
2007/07/01 11:27:47 (17 years ago)
Author:
kakinaka
Message:

カラム一覧取得時、不正データは取得しないように修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/data/lib/slib.php

    r14870 r15001  
    242242    // postgresql¤Èmysql¤È¤Ç½èÍý¤òʬ¤±¤ë 
    243243    if ($db_type == "pgsql") { 
    244         $sql = "SELECT a.attname FROM pg_class c, pg_attribute a WHERE c.relname=? AND c.oid=a.attrelid AND a.attnum > 0 ORDER BY a.attnum"; 
     244        $sql = "SELECT a.attname FROM pg_class c, pg_attribute a WHERE c.relname=? AND c.oid=a.attrelid AND a.attnum > 0 AND not a.attname like '........pg.dropped.%........' ORDER BY a.attnum"; 
    245245        $arrColList = $objQuery->getAll($sql, array($table_name)); 
    246246        $arrColList = sfswaparray($arrColList); 
Note: See TracChangeset for help on using the changeset viewer.