pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: noreply@pgfoundry.org
To: noreply@pgfoundry.org
Subject:  [ psqlodbc-Bugs-1000432 ] Inconsistent PGAPI_ declarations
Date: Fri, 25 Nov 2005 10:44:18 +0000 (GMT)
Message-ID: <20051125104418.B7191112500B@pgfoundry.org> (raw)

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



Message-ID: <20051125104418.B7191112500B@pgfoundry.org>
Permalink:  ../20051125104418.B7191112500B@pgfoundry.org/
Also on:    postgresql.org/message-id/20051125104418.B7191112500B@pgfoundry.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: noreply@pgfoundry.org
  Subject: Re: [ psqlodbc-Bugs-1000432 ] Inconsistent PGAPI_ declarations
  In-Reply-To: <20051125104418.B7191112500B@pgfoundry.org>
  References: <20051125104418.B7191112500B@pgfoundry.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox