[ psqlodbc-Bugs-1000432 ] Inconsistent PGAPI_ declarations

From: <noreply(at)pgfoundry(dot)org>
To: noreply(at)pgfoundry(dot)org
Subject: [ psqlodbc-Bugs-1000432 ] Inconsistent PGAPI_ declarations
Date: 2005-11-25 10:44:18
Message-ID: 20051125104418.B7191112500B@pgfoundry.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Bugs item #1000432, was opened at 2005-11-19 22:07
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000432&group_id=1000125

Category: None
Group: None
>Status: Closed
Resolution: None
Priority: 3
Submitted By: Dave Page (dpage)
Assigned to: Nobody (None)
Summary: Inconsistent PGAPI_ declarations

Initial Comment:
Some of the internal PGAPI_* functions don't match their definitions. For example, from pgapifunc.h:

RETCODE SQL_API PGAPI_BindParameter(
HSTMT hstmt,
SQLUSMALLINT ipar,
SQLSMALLINT fParamType,
SQLSMALLINT fCType,
SQLSMALLINT fSqlType,
SQLUINTEGER cbColDef,
SQLSMALLINT ibScale,
PTR rgbValue,
SQLINTEGER cbValueMax,
SQLINTEGER *pcbValue);

And from bind.c:

PGAPI_BindParameter(
HSTMT hstmt,
UWORD ipar,
SWORD fParamType,
SWORD fCType,
SWORD fSqlType,
UDWORD cbColDef,
SWORD ibScale,
PTR rgbValue,
SDWORD cbValueMax,
SDWORD FAR * pcbValue)

With some DMs (notably iODBC);

typedef long int SDWORD;

#if (SIZEOF_LONG == 8)
typedef signed int SQLINTEGER;
#else
typedef signed long SQLINTEGER;
#endif

The declaration (pgapifunc.h) would appear to be correct.

----------------------------------------------------------------------

>Comment By: Dave Page (dpage)
Date: 2005-11-25 10:44

Message:
I've committed an update that should clean up all of these.

----------------------------------------------------------------------

You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000432&group_id=1000125

Browse pgsql-odbc by date

  From Date Subject
Next Message lothar.behrens@lollisoft.de 2005-11-25 12:08:47 VARCHAR, CHAR types changed ?
Previous Message noreply 2005-11-25 08:57:30 [ psqlodbc-Bugs-1000435 ] Special characters in table names