Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information