Skip to content

Commit

Permalink
Match PostgreSQL CIDR column type
Browse files Browse the repository at this point in the history
  • Loading branch information
mlawren committed Jul 31, 2012
1 parent e13846f commit 8db7437
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/SQL/DB/Expr.pm
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,9 @@ sub _sql_values_types {
elsif ( $type eq 'inet' ) {
push( @types, { pg_type => eval 'DBD::Pg::PG_INET' } );
}
elsif ( $type eq 'cidr' ) {
push( @types, { pg_type => eval 'DBD::Pg::PG_CIDR' } );
}
else {
warn "No mapping for type $type";
push( @types, undef );
Expand Down

0 comments on commit 8db7437

Please sign in to comment.