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

psqlodbc problem urgent

From: raja chidambaram <raja(at)solnettechnologies(dot)com>
To: sydpug(at)postgresql(dot)org
Subject: psqlodbc problem urgent
Date: 2006-06-01 04:19:54
Message-ID: 1149135593.3194.13.camel@localhost.localdomain (view raw, whole thread or download thread mbox)
Lists: sydpug
Hi all,

I use postgres version 7.5.9-2 with psqlodbc version 7.3-3 that comes
with RHEL3 for our application.But i a found sort of bug in psqlodbc
when i try to execute a query while the postgres database is down,the
SQLprepare statement returns 0 insted of -1 & the application crashes
displaying Broken pipe.

But i did not find this in earlier version of psqlodbc.

I need to handle this we are enhancing our application for postgres
database recovery.

the code goes like this i call this function 

Void executeQuery()
    int i, iRetValue;

    for(i = 0; i < MAX_ROW; i ++)
        iRetValue = SQLPrepare( hstmt, (UCHAR *) cmds[i], SQL_NTS );

        if ( iRetValue != SQL_SUCCESS )
            printf( "SQLError SQLPrepare() failed\n" );

        //printf("Executing: %s\n", cmds[i]);
        iRetValue = SQLExecute ( hstmt );
        if ( iRetValue != SQL_SUCCESS )
            printf( "SQLError SQLExecute() failed with retVal: %d\n",
71,1          34%

  Is their any way to verify postgres connection.If so help me please
it's urgent.



sydpug by date

Next:From: Gavin SherryDate: 2006-06-01 05:07:59
Subject: Re: psqlodbc problem urgent
Previous:From: Chris VelevitchDate: 2006-05-31 02:30:50
Subject: Re: June 6th Sydney PostgreSQL Users Group Meeting

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