Changeset 922 for LATMOS-Accounts


Ignore:
Timestamp:
04/17/12 17:49:51 (12 years ago)
Author:
nanardon
Message:
  • fix SQL query not working with IPv6 network
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/Netzone.pm

    r863 r922  
    102102            select count(*) from ( 
    103103            select host(network(value::inet)+ (generate_series(1, broadcast(value::inet) - network(value::inet) -1))) from netzone_attributes where 
    104             attr='net' and okey = $1 
     104            attr='net' and okey = $1 and family(value::inet) = 4 
    105105            except 
    106106            ( 
Note: See TracChangeset for help on using the changeset viewer.