|
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.83 2009/08/05 16:11:07 joe Exp $ |
| 11 | + * $PostgreSQL: pgsql/contrib/dblink/dblink.c,v 1.84 2009/09/12 23:20:52 joe Exp $ |
12 | 12 | * Copyright (c) 2001-2009, PostgreSQL Global Development Group |
13 | 13 | * ALL RIGHTS RESERVED; |
14 | 14 | * |
@@ -855,9 +855,9 @@ dblink_record_internal(FunctionCallInfo fcinfo, bool is_async) |
855 | 855 | (PQresultStatus(res)!=PGRES_COMMAND_OK&& |
856 | 856 | PQresultStatus(res)!=PGRES_TUPLES_OK)) |
857 | 857 | { |
858 | | -dblink_res_error(conname,res,"could not execute query",fail); |
859 | 858 | if (freeconn) |
860 | 859 | PQfinish(conn); |
| 860 | +dblink_res_error(conname,res,"could not execute query",fail); |
861 | 861 | MemoryContextSwitchTo(oldcontext); |
862 | 862 | SRF_RETURN_DONE(funcctx); |
863 | 863 | } |
|