Fix comparison from == to = for Postgres which doesn't support ==