Changeset: 3b524d371e68 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/3b524d371e68
Modified Files:
sql/backends/monet5/copy_convert.c
sql/backends/monet5/rel_copy.c
Branch: pp_hashjoin
Log Message:
allow for huge strings
diffs (24 lines):
diff --git a/sql/backends/monet5/copy_convert.c
b/sql/backends/monet5/copy_convert.c
--- a/sql/backends/monet5/copy_convert.c
+++ b/sql/backends/monet5/copy_convert.c
@@ -355,7 +355,7 @@ COPYparse_string(Client cntxt, MalBlkPtr
offset = (int) nil_offset;
nils++;
ok = copy_report_error(&errors, (lng) i, -1,
"incorrectly encoded UTF-8");
- } else if (n > (size_t) colwidth) {
+ } else if (colwidth && n > (size_t) colwidth) {
ok = copy_report_error(&errors, (lng) i, -1,
"field too long, max length is %d", colwidth);
} else {
ok = GDK_SUCCEED;
diff --git a/sql/backends/monet5/rel_copy.c b/sql/backends/monet5/rel_copy.c
--- a/sql/backends/monet5/rel_copy.c
+++ b/sql/backends/monet5/rel_copy.c
@@ -280,7 +280,7 @@ exp2bin_copyparpipe(backend *be, sql_exp
q = pushArgument(mb, q, our_block);
q = pushArgument(mb, q, be->pipeline);
q = pushArgument(mb, q, var_indices);
- q = pushInt(mb, q, digits?digits:INT_MAX);
+ q = pushInt(mb, q, digits);
q = pushArgument(mb, q, rows);
q = pushInt(mb, q, i);
q = pushStr(mb, q, col->base.name);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]