Changeset: 5e37083a2992 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/5e37083a2992
Modified Files:
sql/backends/monet5/sql_bincopyconvert.c
Branch: Dec2025
Log Message:
Add COPY BINARY support for inet4 and inet6
This also enables binary result sets in pymonetdb.
diffs (13 lines):
diff --git a/sql/backends/monet5/sql_bincopyconvert.c
b/sql/backends/monet5/sql_bincopyconvert.c
--- a/sql/backends/monet5/sql_bincopyconvert.c
+++ b/sql/backends/monet5/sql_bincopyconvert.c
@@ -811,6 +811,9 @@ static struct type_record_t type_recs[]
{ "hge", "hge", .trivial_if_no_byteswap=true, .decoder=byteswap_hge,
.encoder=byteswap_hge, .validate=validate_hge },
#endif
+ { "inet4", "inet4", .encoder_trivial=true, .decoder_trivial=true, },
+ { "inet6", "inet6", .encoder_trivial=true, .decoder_trivial=true, },
+
{ "blob", "blob", .loader=load_blobs, .dumper=dump_blob },
// \0-terminated text records
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]