Skip to content

Commit

Permalink
Fix SQL Error with fixed ips under devstack/postgresql
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Davanum Srinivas committed Jan 30, 2013
1 parent 90e38ab commit dff7b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova/db/sqlalchemy/models.py
Expand Up @@ -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):
Expand Down

0 comments on commit dff7b9f

Please sign in to comment.