]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Convert all incoming protocol numbers to string
authorAnn Kamyshnikova <akamyshnikova@mirantis.com>
Mon, 10 Nov 2014 14:05:54 +0000 (17:05 +0300)
committerAnn Kamyshnikova <akamyshnikova@mirantis.com>
Tue, 18 Nov 2014 15:51:00 +0000 (18:51 +0300)
commitbc34f26302faea116be7e61051c32f8787530836
treef7d21c94f8f162815f42b1cdb28cb3d683730f19
parente0501760e3837ddafacbe912431510b25cc38bc5
Convert all incoming protocol numbers to string

PostgreSQL is more sensitive for types than MySQL when it selects
something from columns in database. So it fails when it tries to
select from string field comparing with integer value.

Added unit test to verify conversion of protocol numbers to
strings.

Closes-bug:#1381379

Change-Id: I0a29595403a07c66888871088d5549705a097f68
neutron/db/securitygroups_db.py
neutron/extensions/securitygroup.py
neutron/tests/unit/test_extension_security_group.py