From d42dcf9e447151b5bd917c57aad3f7f4ddffd330 Mon Sep 17 00:00:00 2001 From: ohojdysz Date: Thu, 14 Sep 2023 11:04:11 +0200 Subject: [PATCH 1/2] add support for Network address types for postgres --- src/backends/postgresql/statement.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backends/postgresql/statement.cpp b/src/backends/postgresql/statement.cpp index a3b20339c..a0b39621a 100644 --- a/src/backends/postgresql/statement.cpp +++ b/src/backends/postgresql/statement.cpp @@ -764,6 +764,8 @@ 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 type = dt_string; break; @@ -826,6 +828,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; From 51c0ba4c071f12189c859a84b4ddff07358ca0b5 Mon Sep 17 00:00:00 2001 From: ohojdysz Date: Tue, 2 Jan 2024 08:29:10 +0100 Subject: [PATCH 2/2] Added cidr and macaddr8 types to statement.cpp --- src/backends/postgresql/statement.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backends/postgresql/statement.cpp b/src/backends/postgresql/statement.cpp index a0b39621a..0e7d12d52 100644 --- a/src/backends/postgresql/statement.cpp +++ b/src/backends/postgresql/statement.cpp @@ -766,6 +766,8 @@ void postgresql_statement_backend::describe_column(int colNum, data_type & type, case 2950: // uuid case 829: // macaddr case 869: // inet + case 650: // cidr + case 774: // macaddr8 type = dt_string; break;