OSDN Git Service

Do not enable TCL_ARRAYS feature by default, because it
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 8 Oct 1998 23:31:20 +0000 (23:31 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 8 Oct 1998 23:31:20 +0000 (23:31 +0000)
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

index 2d45c55..7b1ddbe 100644 (file)
@@ -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.