Changeset 15002


Ignore:
Timestamp:
2007/07/01 11:32:23 (14 years ago)
Author:
kakinaka
Message:

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

File:
1 edited

Legend:

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

    r14676 r15002  
    243243    // postgresql¤Èmysql¤È¤Ç½èÍý¤òʬ¤±¤ë 
    244244    if ($db_type == "pgsql") { 
    245         $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"; 
     245        $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"; 
    246246        $arrColList = $objQuery->getAll($sql, array($table_name)); 
    247247        $arrColList = sfswaparray($arrColList); 
Note: See TracChangeset for help on using the changeset viewer.