Commit b327c256 authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4640 (Stat geolocation data install broken on Oracle and MS Access DBs)

parent 73dd6e51
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -1206,6 +1206,18 @@ class DatabaseConnector
                return null;
            }

            if ((get_db_type() == 'oracle') || (get_db_type() == 'access')) {
                // These databases are not supporting batch syntax
                // TODO: Improve logic in v11

                foreach ($all_values as $v) {
                    $query = 'INSERT INTO ' . $this->table_prefix . $table . ' (' . $keys . ') VALUES (' . $v . ')';
                    $this->_query($query, null, null, $fail_ok, $ret, null, '', $save_as_volatile);
                }

                return null;
            }

            // So we can do batch inserts...
            $all_v = '';
            foreach ($all_values as $v) {