Re: RE : RE : Cannot update or delete rows
Re: RE : RE : Cannot update or delete rows
От:
Hiroshi Inoue <inoue@tpf.co.jp>
Дата:
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';