Skip to content

Commit 60fee72

Browse files
committed
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.
1 parent 2133276 commit 60fee72

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/include/config.h.in

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,13 @@ extern void srandom(int seed);
347347
#define FUNC_UTIL_PATCH
348348

349349
/*
350-
* Define this if you want to retrieve arrays attributes as Tcl lists instead
351-
* of postgres C-like arrays, for example {{"a1" "a2"} {"b1" "b2"}} instead
352-
* of {{"a1","a2"},{"b1","b2"}}.
350+
* Define this to make libpgtcl's "pg_result -assign" command process C-style
351+
* backslash sequences in returned tuple data and convert Postgres array
352+
* attributes into Tcl lists. CAUTION: this conversion is *wrong* unless
353+
* you install the routines in contrib/string/string_io to make the backend
354+
* produce C-style backslash sequences in the first place.
353355
*/
354-
#define TCL_ARRAYS
356+
/* #define TCL_ARRAYS */
355357

356358
/*
357359
* The following flag allows limiting the number of rows returned by a query.

0 commit comments

Comments
 (0)