]> 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)
committerAdam Gandelman <adamg@ubuntu.com>
Tue, 25 Nov 2014 18:56:32 +0000 (10:56 -0800)
commitc00b4b31276f9ae21fa0a7a213391277bda4cfa7
treef33b8081cbe28a3af279255dbe800635e7f948c3
parent463eb73e2a99ad1af2c1f8bba466654b6468af5b
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

(cherry picked from commit bc34f26302faea116be7e61051c32f8787530836)

Conflicts:
neutron/tests/unit/test_extension_security_group.py

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