# ( $table.${prefix}city = ? $or_empty_city $ornull )
"
- ( $table.${prefix}district = ? OR ? = '' OR CAST(? AS text) IS NULL )
+ ( $table.district = ? OR ? = '' OR CAST(? AS text) IS NULL )
AND ( $table.${prefix}city = ? OR ? = '' OR CAST(? AS text) IS NULL )
AND ( $table.${prefix}county = ? $or_empty_county $ornull )
AND ( $table.${prefix}state = ? $or_empty_state $ornull )
my $table = shift;
my $prefix = @_ ? shift : '';
"
- ( $table.${prefix}district = cust_main_county.district
+ ( $table.district = cust_main_county.district
OR cust_main_county.district = ''
OR cust_main_county.district IS NULL )
AND ( $table.${prefix}city = cust_main_county.city