pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jose' Cruanyes <cruanyes@cegroup.it>
To: Dave Page <dpage@vale-housing.co.uk>
Cc: pgsql-odbc@postgresql.org
Subject: Re: invalid input syntax for type tid: '(,)'
Date: Mon, 5 Apr 2004 13:21:05 +0200
Message-ID: <53FA1120-86F3-11D8-A231-0003935B359C@cegroup.it> (raw)
In-Reply-To: <50115.80.177.99.193.1081157559.squirrel@ssl.vale-housing.co.uk>
References: <16E80DD4-85B9-11D8-A231-0003935B359C@cegroup.it>
	<20827.1081055086@sss.pgh.pa.us>
	<33898D66-8682-11D8-A231-0003935B359C@cegroup.it>
	<50115.80.177.99.193.1081157559.squirrel@ssl.vale-housing.co.uk>


On Apr 5, 2004, at 11:32 AM, Dave Page wrote:

> It's rumoured that Jose Cruanyes once said:
>>
>> I've found three, two on "convert.c" and one on "results.c"
>>
>> now if some one can put the changes upstream...
>>
>
> Can you post a patch?
>
--------------<cut>--------------8<----------------8<------------- 
-8<------------------
inline patch 1: psqlodbc-new/convert.c Sun Apr 4 19:39:39 2004 (+0/-1 lines) download inline-1.patchdiff -Naur psqlodbc-old/convert.c psqlodbc-new/convert.c --- psqlodbc-old/convert.c Mon Oct 20 02:37:42 2003 +++ psqlodbc-new/convert.c Sun Apr 4 19:39:39 2004 @@ -2059,7 +2059,7 @@ * 1st query is for field information * 2nd query is keyset gathering */ - CVT_APPEND_STR(qb, " where ctid =
'(,)';select ctid, oid from "); + CVT_APPEND_STR(qb, " where ctid = '(0,0)';select ctid, oid from "); CVT_APPEND_DATA(qb, qp->statement + qp->from_pos + 5, npos - qp->from_pos - 5); } } @@ -2102,7 +2102,7 @@ qb->load_stmt_len = qb->npos; if (0 != (qb->flags & FLGB_KEYSET_DRIVEN)) { - CVT_APPEND_STR(qb, "where ctid = '(,)';select CTID, OID from "); + CVT_APPEND_STR(qb, "where ctid = '(0,0)';select CTID, OID from "); CVT_APPEND_DATA(qb, qp->statement + qp->from_pos + 5, qp->where_pos - qp->from_pos - 5); } }
inline patch 2: psqlodbc-new/results.c Sun Apr 4 20:33:47 2004 (+0/-1 lines) download inline-2.patchdiff -Naur psqlodbc-old/results.c psqlodbc-new/results.c --- psqlodbc-old/results.c Mon Oct 20 02:37:42 2003 +++ psqlodbc-new/results.c Sun Apr 4 20:33:47 2004 @@ -1827,7 +1827,7 @@ { len += 50; selstr = malloc(len); - sprintf(selstr, "%s where ctid = currtid(0, '(,)') and
oid = %u", stmt->load_statement, oid); + sprintf(selstr, "%s where ctid = currtid(0, '(0,0)') and oid = %u", stmt->load_statement, oid); } else { --------------<cut>--------------8<----------------8<------------- -8<------------------ Pax et Bonum # dott. Jose' Cruanyes Aguilar - C.E. Soft srl # Pzza. Firenze,4 MILANO - XX Settembre 10, CREMONA # 02,33603122 0372,460602 Patches: download all (2 files, .tar.gz)

view thread (7+ messages)  latest in thread

Message-ID: <53FA1120-86F3-11D8-A231-0003935B359C@cegroup.it>
Permalink:  ../53FA1120-86F3-11D8-A231-0003935B359C@cegroup.it/
Also on:    postgresql.org/message-id/53FA1120-86F3-11D8-A231-0003935B359C@cegroup.it

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: cruanyes@cegroup.it, dpage@vale-housing.co.uk, pgsql-odbc@postgresql.org
  Subject: Re: invalid input syntax for type tid: '(,)'
  In-Reply-To: <53FA1120-86F3-11D8-A231-0003935B359C@cegroup.it>
  References: <16E80DD4-85B9-11D8-A231-0003935B359C@cegroup.it> <20827.1081055086@sss.pgh.pa.us> <33898D66-8682-11D8-A231-0003935B359C@cegroup.it> <50115.80.177.99.193.1081157559.squirrel@ssl.vale-housing.co.uk> <53FA1120-86F3-11D8-A231-0003935B359C@cegroup.it>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox