Commit 08f0f15
committed
Parameterize primary key values in DELETE query construction
The DELETE path selects primary key values and then uses them in a
DELETE ... WHERE pk IN (...) query. Previously, the values were
interpolated directly via implode(). While the values come from the
database (not user input), they could be non-integer types (e.g.,
VARCHAR primary keys), which would produce broken SQL. Use bound
parameters instead.1 parent 84f2455 commit 08f0f15
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1494 | 1494 | | |
1495 | 1495 | | |
1496 | 1496 | | |
1497 | | - | |
1498 | | - | |
1499 | | - | |
1500 | | - | |
1501 | | - | |
1502 | | - | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
1503 | 1504 | | |
1504 | 1505 | | |
1505 | 1506 | | |
| |||
0 commit comments