Fix wrong filter with ALLOW directive when getting list of  partition.
Fix query to retrieve SRID that broken with patch on CONVERT_SRID.