postgresql-interfaces/psqlodbc GitHub issues and pull requests (mirror)  
help / color / mirror / Atom feed
From: jboakye (@jboakye) <[email protected]>
To: postgresql-interfaces/psqlodbc <[email protected]>
Subject: [postgresql-interfaces/psqlodbc] issue #16: [psqlodbc-REL-16_00_0004][Postgres 15 5][Debian][unixODBC] Need to add CPPFLAGS="-DSQLCOLATTRIBUTE_SQLLEN" to configure to get it to compile
Date: Mon, 13 May 2024 09:49:03 +0000
Message-ID: <[email protected]> (raw)

Otherwise we get the error below. Same issue with previous releases.

odbcapi30.c:120:1: error: conflicting types for 'SQLColAttribute'; have 'SQLRETURN(void *, SQLUSMALLINT,  SQLUSMALLINT,  void *, SQLSMALLINT,  SQLSMALLINT *, void *)' {aka 'short int(void *, short unsigned int,  short unsigned int,  void *, short int,  short int *, void *)'}
  120 | SQLColAttribute(SQLHSTMT StatementHandle,
      | ^~~~~~~~~~~~~~~
In file included from psqlodbc.h:145,
                 from odbcapi30.c:21:
/usr/local/include/sql.h:613:24: note: previous declaration of 'SQLColAttribute' with type 'SQLRETURN(void *, SQLUSMALLINT,  SQLUSMALLINT,  void *, SQLSMALLINT,  SQLSMALLINT *, SQLLEN *)' {aka 'short int(void *, short unsigned int,  short unsigned int,  void *, short int,  short int *, long int *)'}
  613 |     SQLRETURN  SQL_API SQLColAttribute(SQLHSTMT StatementHandle,
      |                        ^~~~~~~~~~~~~~~


view thread (6+ messages)  latest in thread

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 using the --to and --cc options:
  reply via email

  To: github://postgresql-interfaces/psqlodbc
  Cc: [email protected], [email protected]
  Subject: Re: [postgresql-interfaces/psqlodbc] issue #16: [psqlodbc-REL-16_00_0004][Postgres 15 5][Debian][unixODBC] Need to add CPPFLAGS="-DSQLCOLATTRIBUTE_SQLLEN" to configure to get it to compile
  In-Reply-To: <<[email protected]>>

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

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