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

Where is DiscardRollbackState()?

From: Zoltan Boszormenyi <zb(at)cybertec(dot)at>
To: pgsql-odbc(at)postgresql(dot)org, Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>
Cc: Hans-Juergen Schoenig <hs(at)cybertec(dot)at>
Subject: Where is DiscardRollbackState()?
Date: 2008-11-17 18:57:09
Message-ID: 4921BE85.1090804@cybertec.at (view raw or flat)
Thread:
Lists: pgsql-odbc
Hi,

in psqlODBC's odbcapi.c, there's:

#if (ODBCVER < 0x0300)
RETCODE         SQL_API
SQLGetStmtOption(HSTMT StatementHandle,
                                 SQLUSMALLINT Option, PTR Value)
{
        CSTR    func = "SQLGetStmtOption";
        RETCODE ret;
        StatementClass *stmt = (StatementClass *) StatementHandle;

        mylog("[%s]", func);
        ENTER_STMT_CS(stmt);
        SC_clear_error(stmt);
        StartRollbackState(stmt);
        ret = PGAPI_GetStmtOption(StatementHandle, Option, Value, NULL, 64);
        ret = DiscardRollbackState(stmt, ret, FALSE);
        LEAVE_STMT_CS(stmt);
        return ret;
}
#endif /* ODBCVER */

If I compile the driver --with-odbcver=0x0250,
DiscardRollbackState() shows up at runtime linking
as an unknown symbol.

DiscardRollbackState() is not defined anywhere,
only referenced in the above function. It's clearly a bug to me.

Best regards,
Zoltán Böszörményi

-- 
----------------------------------
Zoltán Böszörményi
Cybertec Schönig & Schönig GmbH
http://www.postgresql.at/


Responses

pgsql-odbc by date

Next:From: Hiroshi SaitoDate: 2008-11-18 16:07:28
Subject: Re: Documentation for Protocol= connection string option
Previous:From: Serge FonvilleDate: 2008-11-14 16:34:35
Subject: Re: [JDBC] Re : [pgadmin-support] trouble in installing postgreSQL 8.3

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