Re: RE : RE : Cannot update or delete rows

Re: RE : RE : Cannot update or delete rows

am 11.08.2006 17:22:47 von Hiroshi Inoue

This is a multi-part message in MIME format.
--------------040006010208070905030607
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Pascal Viandier wrote:
> Hi Hiroshi,
>
>
>> Please try the dll at
>> http://www.geocities.jp/inocchichichi/psqlodbc/index.html
>> ?
>>
>
> I am sorry, I work on Sun Sparc Solaris, not Windows.

Oh I see.
Please apply the attached patch.

regards,
Hiroshi Inoue

--------------040006010208070905030607
Content-Type: text/plain;
name="conv.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="conv.diff"

*** ../../psqlodbc-libpq/psqlodbc/convert.c Sun Jul 9 23:40:28 2006
--- ./convert.c Fri Aug 11 13:06:25 2006
***************
*** 2381,2386 ****
--- 2381,2387 ----
CVT_APPEND_DATA(qb, qp->statement + qp->from_pos + 5, npos - qp->from_pos - 5);
}
}
+ npos -= qp->declare_pos;
stmt->load_statement = malloc(npos + 1);
memcpy(stmt->load_statement, qb->query_statement + qp->declare_pos, npos);
stmt->load_statement[npos] = '\0';

--------------040006010208070905030607
Content-Type: text/plain
Content-Disposition: inline
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable


---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

--------------040006010208070905030607--