Skip site navigation (1) Skip section navigation (2)

crash in LIBPQ_execute_query

From: "Scot Loach" <sloach(at)sandvine(dot)com>
To: <pgsql-odbc(at)postgresql(dot)org>
Subject: crash in LIBPQ_execute_query
Date: 2005-09-02 12:12:01
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-odbc
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;


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.

pgsql-odbc by date

Next:From: Merlin MoncureDate: 2005-09-02 12:45:36
Subject: Re: crash in LIBPQ_execute_query
Previous:From: Anoop KumarDate: 2005-09-02 10:45:52
Subject: Re: Unicode support

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group