Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7157114

Browse files
committed
Remove long-unused and broken TCL_ARRAYS.
1 parentc67f6f2 commit7157114

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

‎src/backend/utils/adt/arrayfuncs.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.140 2008/01/01 19:45:52 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.141 2008/02/29 20:58:33 alvherre Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1030,9 +1030,7 @@ array_out(PG_FUNCTION_ARGS)
10301030
if (ch=='"'||ch=='\\')
10311031
{
10321032
needquote= true;
1033-
#ifndefTCL_ARRAYS
10341033
overall_length+=1;
1035-
#endif
10361034
}
10371035
elseif (ch=='{'||ch=='}'||ch==typdelim||
10381036
isspace((unsignedchar)ch))
@@ -1103,7 +1101,6 @@ array_out(PG_FUNCTION_ARGS)
11031101
if (needquotes[k])
11041102
{
11051103
APPENDCHAR('"');
1106-
#ifndefTCL_ARRAYS
11071104
for (tmp=values[k];*tmp;tmp++)
11081105
{
11091106
charch=*tmp;
@@ -1113,9 +1110,6 @@ array_out(PG_FUNCTION_ARGS)
11131110
*p++=ch;
11141111
}
11151112
*p='\0';
1116-
#else
1117-
APPENDSTR(values[k]);
1118-
#endif
11191113
APPENDCHAR('"');
11201114
}
11211115
else

‎src/include/pg_config_manual.h

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* for developers.If you edit any of these, be sure to do a *full*
77
* rebuild (and an initdb if noted).
88
*
9-
* $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.27 2007/06/08 18:23:53 tgl Exp $
9+
* $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.28 2008/02/29 20:58:33 alvherre Exp $
1010
*------------------------------------------------------------------------
1111
*/
1212

@@ -99,16 +99,6 @@
9999
*/
100100
#defineNUM_USER_DEFINED_LWLOCKS4
101101

102-
/*
103-
* Define this to make libpgtcl's "pg_result -assign" command process
104-
* C-style backslash sequences in returned tuple data and convert
105-
* PostgreSQL array values into Tcl lists.CAUTION: This conversion
106-
* is *wrong* unless you install the routines in
107-
* contrib/string/string_io to make the server produce C-style
108-
* backslash sequences in the first place.
109-
*/
110-
/* #define TCL_ARRAYS */
111-
112102
/*
113103
* Define this if you want psql to _always_ ask for a username and a
114104
* password for password authentication.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp