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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: Where is DiscardRollbackState()?


  • From: Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>
  • To: Zoltan Boszormenyi <zb(at)cybertec(dot)at>
  • Cc: pgsql-odbc(at)postgresql(dot)org, Hans-Juergen Schoenig <hs(at)cybertec(dot)at>
  • Subject: Re: Where is DiscardRollbackState()?
  • Date: Sat, 22 Nov 2008 10:03:56 +0900
  • Message-id: <49275A7C.7030301@tpf.co.jp> <text/plain>

Hi Zoltan,
Sorry for the delay.

Zoltan Boszormenyi wrote:
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.

You are right.
It should be replaced by DiscardStatementSvp.
I would fix the bug soon.

regards,
Hiroshi Inoue



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group