equal
deleted
inserted
replaced
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]) ) |