Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ReimuHakurei committed Nov 16, 2022
1 parent f8f4a08 commit 8ceb3cd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion classes/database/Postgres.php
Original file line number Diff line number Diff line change
Expand Up @@ -2502,11 +2502,19 @@ function insertRow($table, $fields, $values, $nulls, $format, $types) {
// Build clause
if (count($values) > 0) {
// Escape all field names
$fields = array_map(array('Postgres','fieldClean'), $fields);
$clean_fields = array();

foreach ($fields as $field) {
array_push($clean_fields, $this->fieldClean($field));
}

$fields = $clean_fields;

$f_schema = $this->_schema;
$this->fieldClean($table);
$this->fieldClean($f_schema);


$sql = '';
foreach($values as $i => $value) {

Expand Down

0 comments on commit 8ceb3cd

Please sign in to comment.