|
@@ 112-118 (lines=7) @@
|
| 109 |
|
$parameters = $this->getParametersList($updates); |
| 110 |
|
$update_strings = []; |
| 111 |
|
|
| 112 |
|
foreach ($updates as $field_name => $new_value) { |
| 113 |
|
$update_strings[] = sprintf( |
| 114 |
|
"%s = %s", |
| 115 |
|
$this->escapeIdentifier($field_name), |
| 116 |
|
$parameters[$field_name] |
| 117 |
|
); |
| 118 |
|
} |
| 119 |
|
|
| 120 |
|
$sql = strtr( |
| 121 |
|
"update :relation set :update where :condition returning :projection", |
|
@@ 158-164 (lines=7) @@
|
| 155 |
|
$parameters = $this->getParametersList($updates); |
| 156 |
|
$update_strings = []; |
| 157 |
|
|
| 158 |
|
foreach ($updates as $field_name => $new_value) { |
| 159 |
|
$update_strings[] = sprintf( |
| 160 |
|
"%s = %s", |
| 161 |
|
$this->escapeIdentifier($field_name), |
| 162 |
|
$parameters[$field_name] |
| 163 |
|
); |
| 164 |
|
} |
| 165 |
|
|
| 166 |
|
$sql = strtr( |
| 167 |
|
"update :relation set :update where :condition returning :projection", |