includes/dbal.php
changeset 636 c9ea830a211f
parent 628 ab6f55abb17e
child 681 424ea7aac0ca
equal deleted inserted replaced
635:b3a33b661681 636:c9ea830a211f
  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]) )