Skip to content

Commit

Permalink
Add support for network address types to PostgreSQL backend
Browse files Browse the repository at this point in the history
Recognize MAC, INET and CIDR PostgreSQL types too and just handle them
as strings.

Closes #1078.
  • Loading branch information
ohojdysz-prgs authored and vadz committed Jan 2, 2024
1 parent ca6a7f8 commit 65a7e4d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/backends/postgresql/statement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,10 @@ void postgresql_statement_backend::describe_column(int colNum, data_type & type,
case 114: // json
case 17: // bytea
case 2950: // uuid
case 829: // macaddr
case 869: // inet
case 650: // cidr
case 774: // macaddr8
type = dt_string;
break;

Expand Down Expand Up @@ -826,6 +830,7 @@ void postgresql_statement_backend::describe_column(int colNum, data_type & type,
case 'T': // time type
case 'S': // string type
case 'U': // user type
case 'I': // network address type
type = dt_string;
break;

Expand Down

0 comments on commit 65a7e4d

Please sign in to comment.