Fix empty network deletion in db_base_plugin for postgresql
Fix empty network deletion in db_base_plugin for postgresql

Need to disable joined loads for port query in delete_network
as in other methods.

No unit test is being added, because the problem is not reproducible with
sqlite.

Closes-Bug: #1261652

Change-Id: I7a015be6f2f9b8ae43bc29a767d16af30120f13f

gopal1cloud/neutron,redhat-openstack/neutron,sajuptpm/neutron-ipam,bgxavier/neutron,huntxu/neutron,openstack/neutron,asgard-lab/neutron,javaos74/neutron,jacknjzhou/neutron,SmartInfrastructures/neutron,beagles/neutron_hacking,neoareslinux/neutron,cloudbase/neutron,cisco-openstack/neutron,yamahata/neutron,beagles/neutron_hacking,mahak/neutron,javaos74/neutron,eonpatapon/neutron,Juniper/neutron,cloudbase/neutron-virtualbox,antonioUnina/neutron,alexandrucoman/vbox-neutron-agent,jerryz1982/neutron,neoareslinux/neutron,JianyuWang/neutron,sajuptpm/neutron-ipam,CiscoSystems/neutron,swdream/neutron,yamahata/tacker,vijayendrabvs/hap,infobloxopen/neutron,mmnelemane/neutron,eonpatapon/neutron,dims/neutron,Juniper/contrail-dev-neutron,wolverineav/neutron,jumpojoy/neutron,silenci/neutron,aristanetworks/neutron,Comcast/neutron,barnsnake351/neutron,Metaswitch/calico-neutron,chitr/neutron,Stavitsky/neutron,wenhuizhang/neutron,skyddv/neutron,NeCTAR-RC/neutron,vijayendrabvs/ssl-neutron,noironetworks/neutron,asgard-lab/neutron,yuewko/neutron,glove747/liberty-neutron,vbannai/neutron,dims/neutron,Juniper/neutron,mmnelemane/neutron,leeseulstack/openstack,CiscoSystems/neutron,jerryz1982/neutron,klmitch/neutron,cloudbase/neutron,SmartInfrastructures/neutron,zhhf/charging,leeseuljeong/leeseulstack_neutron,gkotton/neutron,JioCloud/neutron,suneeth51/neutron,sebrandon1/neutron,mattt416/neutron,cisco-openstack/neutron,openstack/neutron,silenci/neutron,yamahata/neutron,dhanunjaya/neutron,vijayendrabvs/hap,yamahata/tacker,blueboxgroup/neutron,chitr/neutron,igor-toga/local-snat,wolverineav/neutron,barnsnake351/neutron,adelina-t/neutron,CiscoSystems/neutron,vbannai/neutron,vveerava/Openstack,zhhf/charging,shahbazn/neutron,NeCTAR-RC/neutron,blueboxgroup/neutron,waltBB/neutron_read,skyddv/neutron,sasukeh/neutron,vijayendrabvs/ssl-neutron,JianyuWang/neutron,swdream/neutron,projectcalico/calico-neutron,vivekanand1101/neutron,klmitch/neutron,vveerava/Openstack,paninetworks/neutron,rdo-management/neutron,oeeagle/quantum,watonyweng/neutron,eayunstack/neutron,eayunstack/neutron,alexandrucoman/vbox-neutron-agent,zhhf/charging,cloudbase/neutron-virtualbox,vveerava/Openstack,leeseulstack/openstack,pnavarro/neutron,Comcast/neutron,sajuptpm/neutron-ipam,aristanetworks/neutron,mattt416/neutron,apporc/neutron,vijayendrabvs/ssl-neutron,oeeagle/quantum,glove747/liberty-neutron,yuewko/neutron,Stavitsky/neutron,yamahata/tacker,dhanunjaya/neutron,MaximNevrov/neutron,suneeth51/neutron,SamYaple/neutron,igor-toga/local-snat,blueboxgroup/neutron,SamYaple/neutron,watonyweng/neutron,miyakz1192/neutron,wenhuizhang/neutron,beagles/neutron_hacking,yanheven/neutron,cernops/neutron,gkotton/neutron,JioCloud/neutron,sasukeh/neutron,mandeepdhami/neutron,paninetworks/neutron,Juniper/contrail-dev-neutron,takeshineshiro/neutron,apporc/neutron,MaximNevrov/neutron,cernops/neutron,yamahata/neutron,openstack/neutron,Comcast/neutron,gopal1cloud/neutron,jumpojoy/neutron,noironetworks/neutron,vijayendrabvs/hap,mahak/neutron,takeshineshiro/neutron,virtualopensystems/neutron,Juniper/neutron,antonioUnina/neutron,gkotton/neutron,mandeepdhami/neutron,magic0704/neutron,leeseuljeong/leeseulstack_neutron,mahak/neutron,virtualopensystems/neutron,bgxavier/neutron,Juniper/contrail-dev-neutron,sebrandon1/neutron,miyakz1192/neutron,shahbazn/neutron,bigswitch/neutron,adelina-t/neutron,projectcalico/calico-neutron,rdo-management/neutron,pnavarro/neutron,waltBB/neutron_read,vivekanand1101/neutron,infobloxopen/neutron,virtualopensystems/neutron,leeseulstack/openstack,yanheven/neutron,jacknjzhou/neutron,magic0704/neutron,bigswitch/neutron,Metaswitch/calico-neutron,leeseuljeong/leeseulstack_neutron,vbannai/neutron,huntxu/neutron,redhat-openstack/neutron