From dff7b9f344b5ebc3529217317d665500c603fa1e Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Tue, 29 Jan 2013 20:57:38 -0500 Subject: [PATCH] Fix SQL Error with fixed ips under devstack/postgresql Postgresql does not allow sql that mix integer and booleans. Switch to check if deleted flag is set to 0 Fixes LP# 1109889 Change-Id: Icf03aa9591d398ba7d12f0db91e43df140e0df50 --- nova/db/sqlalchemy/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/db/sqlalchemy/models.py b/nova/db/sqlalchemy/models.py index 53d6f53bdfaf..fd83486780aa 100644 --- a/nova/db/sqlalchemy/models.py +++ b/nova/db/sqlalchemy/models.py @@ -724,7 +724,7 @@ class FixedIp(BASE, NovaBase): foreign_keys=network_id, primaryjoin='and_(' 'FixedIp.network_id == Network.id,' - 'FixedIp.deleted == False)') + 'FixedIp.deleted == 0)') class FloatingIp(BASE, NovaBase):