Changeset 424

Show
Ignore:
Timestamp:
12/02/07 16:05:42 (1 year ago)
Author:
bricef
Message:

Correction du driver suite au ticket #111

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/utils/copix/db/drivers/pdo_pgsql/CopixDbConnection.pdo_pgsql.class.php

    r395 r424  
    8383        $result = $this->doQuery ($sql); 
    8484        foreach ($result as $key => $val) { 
    85             if(preg_match ('/btree \((.*?)\)/', $val->inddef, $matches)){ 
     85            // Une clé primaire à un btree et son indisprimary est à t (true) 
     86            if(preg_match ('/btree \((.*?)\)/', $val->inddef, $matches) && ($var->indisprimary == 't')){ 
    8687                $arIdx[] = $matches[1]; 
    8788            } 
     89             
    8890        } 
    8991