Commit 93be682
committed
test: Rebind Log Output Query for PostgreSQL
While debugging a totally unrelated issue, I stumbled over the following
PostgreSQL output:
> [97] ERROR: syntax error at or near "ORDER" at character 173
> [97] STATEMENT: SELECT h.event_time, h.event_type FROM history h
> JOIN host ON host.id = h.host_id
> LEFT JOIN downtime_history d ON d.downtime_id = h.downtime_history_id
> WHERE host.name = ?
> ORDER BY h.event_time
The relevant code misses a db.Rebind as the "?" character is for MySQL.1 parent 5454c89 commit 93be682
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
| 438 | + | |
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
| |||
0 commit comments