crash on SQL Server linked servers.
/* Prepare the statement if possible at backend side */
if (!stmt->inaccurate_result)
{
- /**
- switch (decideHowToPrepare(stmt, FALSE))
- {
- case USING_PREPARE_COMMAND:
- case NAMED_PARSE_REQUEST:
-#ifndef BYPASS_ONESHOT_PLAN_EXECUTION
- case PARSE_TO_EXEC_ONCE:
-#endif
- prepare_before_exec = TRUE;
- }
- **/
if (HowToPrepareBeforeExec(stmt, FALSE) >= allowParse)
prepare_before_exec = TRUE;
}
if (isSqlServr() &&
!stmt->internal &&
0 != stmt->prepare &&
+ PG_VERSION_LT(conn, 8.4) &&
SC_can_parse_statement(stmt))
parse_sqlsvr(stmt);
}
in_dot = FALSE;
in_func = TRUE;
if (NULL != wfi)
+ {
wfi->func = TRUE;
- /*
- * name will have the function name -- maybe useful some
- * day
- */
- mylog("**** got function = '%s'\n", PRINT_NAME(wfi->column_name));
+ /*
+ * name will have the function name -- maybe useful some
+ * day
+ */
+ mylog("**** got function = '%s'\n", PRINT_NAME(wfi->column_name));
+ }
continue;
}
}
else
{
+ QResultClass *res;
+
self->cursor_name = NULL;
+ for (res = self->next; NULL != res; res = res->next)
+ {
+ if (NULL != res->cursor_name)
+ free(res->cursor_name);
+ res->cursor_name = NULL;
+ }
QR_set_no_cursor(self);
}
}
#define POSTGRESDRIVERVERSION "09.00.0311"
#define POSTGRES_RESOURCE_VERSION "09.00.0311\0"
#define PG_DRVFILE_VERSION 9,0,03,11
-#define PG_BUILD_VERSION "201110150001"
+#define PG_BUILD_VERSION "201110310001"
#endif