mirror of
https://github.com/Icinga/icingadb.git
synced 2026-02-18 18:18:00 -05:00
tests: fix SQL syntax error with postgres adapter
This commit is contained in:
parent
ea17fa4a4e
commit
6954dc4e6e
1 changed files with 2 additions and 2 deletions
|
|
@ -500,10 +500,10 @@ func TestObjectSync(t *testing.T) {
|
|||
StateType string `db:"state_type"`
|
||||
}
|
||||
var row Row
|
||||
err = db.Get(&row, `SELECT is_acknowledged, is_sticky_acknowledgement, state_type
|
||||
err = db.Get(&row, db.Rebind(`SELECT is_acknowledged, is_sticky_acknowledgement, state_type
|
||||
FROM host_state
|
||||
INNER JOIN host ON host_state.host_id = host.id
|
||||
WHERE host.name = ?`, host.Name,
|
||||
WHERE host.name = ?`), host.Name,
|
||||
)
|
||||
require.NoError(t, err, "querying host state should not fail")
|
||||
require.Equal(t, types.Bool{Bool: isAcknowledged, Valid: true}, row.IsAcknowledged, "host should be acknowledged")
|
||||
|
|
|
|||
Loading…
Reference in a new issue