X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id EC7FED1E9E3 for ; Mon, 5 Apr 2004 11:20:24 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 12289-05 for ; Mon, 5 Apr 2004 08:20:50 -0300 (ADT) Received: from FE-mail04.sfg.albacom.net (FE-mail04.albacom.net [213.217.149.84]) by svr1.postgresql.org (Postfix) with ESMTP id AA003D1E934 for ; Mon, 5 Apr 2004 08:20:21 -0300 (ADT) Received: from [10.0.0.10] (213.255.89.24) by FE-mail04.sfg.albacom.net (7.0.009) (authenticated as ALS04419@Albaclick.com) id 406E6A190001930D; Mon, 5 Apr 2004 13:20:57 +0200 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> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <53FA1120-86F3-11D8-A231-0003935B359C@cegroup.it> Content-Transfer-Encoding: 7bit Cc: From: Jose' Cruanyes Subject: Re: invalid input syntax for type tid: '(,)' Date: Mon, 5 Apr 2004 13:21:05 +0200 To: "Dave Page" X-Mailer: Apple Mail (2.613) X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/22 X-Sequence-Number: 3917 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? > ----------------------------8<----------------8<------------- -8<------------------ diff -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); } } diff -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 { ----------------------------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