includes/dbal.php
changeset 638 854652a5886a
parent 628 ab6f55abb17e
child 681 424ea7aac0ca
equal deleted inserted replaced
637:77a25231aa8e 638:854652a5886a
  1139       foreach ( $code as $cmd )
  1139       foreach ( $code as $cmd )
  1140       {
  1140       {
  1141         eval($cmd);
  1141         eval($cmd);
  1142       }
  1142       }
  1143     }
  1143     }
  1144     $last_was_insert = preg_match('/^INSERT INTO ([a-z0-9_]+)\(/i', $this->latest_query, $match);
  1144     $last_was_insert = preg_match('/^INSERT INTO ([a-z0-9_]+)/i', $this->latest_query, $match);
  1145     if ( $last_was_insert )
  1145     if ( $last_was_insert )
  1146     {
  1146     {
  1147       // trick based on PunBB's PostgreSQL driver
  1147       // trick based on PunBB's PostgreSQL driver
  1148       $table =& $match[1];
  1148       $table =& $match[1];
  1149       if ( isset($primary_keys[$table]) )
  1149       if ( isset($primary_keys[$table]) )