From 4e6a955972e07330e56fd66b2a1466f6723a1ec9 Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Thu, 12 Apr 2007 16:16:41 +0000 Subject: [PATCH] Use '(0,0)' instead of '(,)' as a dummy CTID. --- convert.c | 4 ++-- results.c | 2 +- version.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/convert.c b/convert.c index 0b659f9..baa3962 100644 --- a/convert.c +++ b/convert.c @@ -2577,7 +2577,7 @@ inolog("type=%d concur=%d\n", * 1st query is for field information * 2nd query is keyset gathering */ - CVT_APPEND_STR(qb, " where ctid = '(,)';select \"ctid"); + CVT_APPEND_STR(qb, " where ctid = '(0,0)';select \"ctid"); if (stmt && stmt->ntab > 0) bestitem = GET_NAME(stmt->ti[0]->bestitem); if (!bestitem) @@ -2670,7 +2670,7 @@ inner_process_tokens(QueryParse *qp, QueryBuild *qb) qb->load_stmt_len = qb->npos; if (0 != (qb->flags & FLGB_KEYSET_DRIVEN)) { - CVT_APPEND_STR(qb, "where ctid = '(,)';select \"ctid"); + CVT_APPEND_STR(qb, "where ctid = '(0,0)';select \"ctid"); if (bestitem) { CVT_APPEND_STR(qb, "\", \""); diff --git a/results.c b/results.c index ea635af..510820a 100644 --- a/results.c +++ b/results.c @@ -3055,7 +3055,7 @@ inolog("%s bestitem=%s bestqual=%s\n", func, SAFE_NAME(ti->bestitem), SAFE_NAME( snprintf(selstr, len, "%s where ctid = '%s' %s", stmt->load_statement, tidval, oideqstr); } else if ((flag & USE_INSERTED_TID) != 0) - snprintf(selstr, len, "%s where ctid = currtid(0, '(,)') %s", stmt->load_statement, oideqstr); + snprintf(selstr, len, "%s where ctid = currtid(0, '(0,0)') %s", stmt->load_statement, oideqstr); else if (bestitem && oidint) { /*snprintf(selstr, len, "%s where \"%s\" = %u", stmt->load_statement, bestitem, *oid);*/ diff --git a/version.h b/version.h index 17e1664..9aeda0d 100644 --- a/version.h +++ b/version.h @@ -12,6 +12,6 @@ #define POSTGRESDRIVERVERSION "08.02.0205" #define POSTGRES_RESOURCE_VERSION "08.02.0205\0" #define PG_DRVFILE_VERSION 8,2,02,05 -#define PG_BUILD_VERSION "200704110001" +#define PG_BUILD_VERSION "200704120001" #endif -- 2.39.5