From: Scot Loach <sloach@sandvine.com>
To: pgsql-odbc@postgresql.org
Subject: crash in LIBPQ_execute_query
Date: Fri, 2 Sep 2005 08:12:01 -0400
Message-ID: <71837C040963F748B9B94E123A289678664DFD@mailserver.sandvine.com> (raw)
Some of the queries we use can be very large.
My code is crashing here:
QResultClass *
LIBPQ_execute_query(ConnectionClass *self,char *query) {
QResultClass *qres; PGresult *pgres;
char *ptr;
char cmdbuffer[ERROR_MSG_LENGTH + 1];
char errbuffer[ERROR_MSG_LENGTH + 1]; int pos=0;
strcpy(cmdbuffer,query);
ERROR_MSG_LENGTH is 4096, my query is larger than that.
What's the rationale here and how do we fix it? This works fine with the old driver.
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-odbc@postgresql.org
Cc: sloach@sandvine.com
Subject: Re: crash in LIBPQ_execute_query
In-Reply-To: <71837C040963F748B9B94E123A289678664DFD@mailserver.sandvine.com>
References: <71837C040963F748B9B94E123A289678664DFD@mailserver.sandvine.com>
* 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