8
8
* Darko Prenosil <Darko.Prenosil@finteh.hr>
9
9
* Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
10
10
*
11
- * $PostgreSQL: pgsql/contrib/dblink/dblink.c,v 1.89 2010/02/14 18:42:11 rhaas Exp $
11
+ * $PostgreSQL: pgsql/contrib/dblink/dblink.c,v 1.90 2010/02/24 05:20:49 itagaki Exp $
12
12
* Copyright (c) 2001-2010, PostgreSQL Global Development Group
13
13
* ALL RIGHTS RESERVED;
14
14
*
@@ -1017,7 +1017,6 @@ dblink_exec(PG_FUNCTION_ARGS)
1017
1017
char * msg ;
1018
1018
PGresult * res = NULL ;
1019
1019
text * sql_cmd_status = NULL ;
1020
- TupleDesc tupdesc = NULL ;
1021
1020
PGconn * conn = NULL ;
1022
1021
char * connstr = NULL ;
1023
1022
char * sql = NULL ;
@@ -1070,11 +1069,6 @@ dblink_exec(PG_FUNCTION_ARGS)
1070
1069
{
1071
1070
dblink_res_error (conname , res , "could not execute command" , fail );
1072
1071
1073
- /* need a tuple descriptor representing one TEXT column */
1074
- tupdesc = CreateTemplateTupleDesc (1 , false);
1075
- TupleDescInitEntry (tupdesc , (AttrNumber ) 1 , "status" ,
1076
- TEXTOID , -1 , 0 );
1077
-
1078
1072
/*
1079
1073
* and save a copy of the command status string to return as our
1080
1074
* result tuple
@@ -1083,11 +1077,6 @@ dblink_exec(PG_FUNCTION_ARGS)
1083
1077
}
1084
1078
else if (PQresultStatus (res ) == PGRES_COMMAND_OK )
1085
1079
{
1086
- /* need a tuple descriptor representing one TEXT column */
1087
- tupdesc = CreateTemplateTupleDesc (1 , false);
1088
- TupleDescInitEntry (tupdesc , (AttrNumber ) 1 , "status" ,
1089
- TEXTOID , -1 , 0 );
1090
-
1091
1080
/*
1092
1081
* and save a copy of the command status string to return as our
1093
1082
* result tuple
0 commit comments