X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2CE4ED72F7 for ; Fri, 2 Sep 2005 09:12:01 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 22017-10 for ; Fri, 2 Sep 2005 12:11:59 +0000 (GMT) Received: from mailserver.sandvine.com (sandvine.com [199.243.201.138]) by svr1.postgresql.org (Postfix) with ESMTP id 386A0D70A7 for ; Fri, 2 Sep 2005 09:11:58 -0300 (ADT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: crash in LIBPQ_execute_query Date: Fri, 2 Sep 2005 08:12:01 -0400 Message-ID: <71837C040963F748B9B94E123A289678664DFD@mailserver.sandvine.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: crash in LIBPQ_execute_query Thread-Index: AcWvt4Yy5v0zpJNFRQuOblwLRg0d4g== From: "Scot Loach" To: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200509/26 X-Sequence-Number: 5924 Some of the queries we use can be very large. My code is crashing here: QResultClass * LIBPQ_execute_query(ConnectionClass *self,char *query) = { =20 QResultClass *qres; = PGresult *pgres; char *ptr; char cmdbuffer[ERROR_MSG_LENGTH + 1]; char errbuffer[ERROR_MSG_LENGTH + 1]; = int pos=3D0; 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.