From be7cb1fec66911b78ed1179f5830cd6680b5c6a2 Mon Sep 17 00:00:00 2001 From: Ilan Schnell Date: Thu, 12 May 2022 11:18:34 -0500 Subject: [PATCH] use dynamic text size limit, see comment --- src/npcontainer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/npcontainer.cpp b/src/npcontainer.cpp index e4b1840f..7f3d9b4b 100644 --- a/src/npcontainer.cpp +++ b/src/npcontainer.cpp @@ -22,8 +22,9 @@ // exported variables ---------------------------------------------------------- -/* controls the maximum text field width */ -Py_ssize_t iopro_text_limit = 1024; +/* controls the maximum text field width, a negative value indicates that the + text size limit will be dynamic based on the sql type, e.g. varchar (4000) */ +Py_ssize_t iopro_text_limit = -1; // -----------------------------------------------------------------------------