From 60fee725b8dc6569b416c572cc4200a630b6d407 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 8 Oct 1998 23:31:20 +0000 Subject: [PATCH] Do not enable TCL_ARRAYS feature by default, because it is wrong and dangerous unless you are using contrib/string. We really need a thorough look at the issue of making the backend and the FE/BE protocols completely 8-bit-clean for string data, but that's a task for some future release. --- src/include/config.h.in | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/include/config.h.in b/src/include/config.h.in index 2d45c55ec4..7b1ddbecc3 100644 --- a/src/include/config.h.in +++ b/src/include/config.h.in @@ -347,11 +347,13 @@ extern void srandom(int seed); #define FUNC_UTIL_PATCH /* - * Define this if you want to retrieve arrays attributes as Tcl lists instead - * of postgres C-like arrays, for example {{"a1" "a2"} {"b1" "b2"}} instead - * of {{"a1","a2"},{"b1","b2"}}. + * Define this to make libpgtcl's "pg_result -assign" command process C-style + * backslash sequences in returned tuple data and convert Postgres array + * attributes into Tcl lists. CAUTION: this conversion is *wrong* unless + * you install the routines in contrib/string/string_io to make the backend + * produce C-style backslash sequences in the first place. */ -#define TCL_ARRAYS +/* #define TCL_ARRAYS */ /* * The following flag allows limiting the number of rows returned by a query. -- 2.40.0