Re: RE : RE : Cannot update or delete rows - Mailing list pgsql-odbc

From Hiroshi Inoue
Subject Re: RE : RE : Cannot update or delete rows
Date
Msg-id 44DCA0C7.9000604@tpf.co.jp
Whole thread Raw
List pgsql-odbc
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
*** ../../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';

pgsql-odbc by date:

Previous
From: "Renato Gondim"
Date:
Subject: ODBC 8.02.00.02
Next
From: "姚国宝"
Date:
Subject: what does the md5.c files do in the ODBC?