credativ / informix_fdw

Foreign Data Wrapper for Informix Databases
Other
28 stars 5 forks source link

A problem with informix10, postgresql9.3 and informix_fdw #2

Closed joluinfante closed 10 years ago

joluinfante commented 10 years ago

Hi! I'm trying to compile this extension. I did compile from sources postgrelsql-9.3.4, and, when I try to compile this extension, I have this problem:

make

Preprocessing Informix ESQL/C sources

Only preprocessing, compilation will be performed later

esql -c ifx_connection.ec ifx_connection.ec: In function ‘ifxSetBigint’: ifx_connection.ec:1133: error: ‘bigint’ undeclared (first use in this function)

I did see in google this comment: If you don't have BIGINT, you must be using an out of date version of Informix.

I can resolve this with any #define? I did see a bigint is a "8 bytes integer". Any can help me?

TIA jorge infante rosario - santa fe - argentina

joluinfante commented 10 years ago

I did resolve it. I did change ifx_connection.ec to:

/* If you don't have BIGINT, you must be using an out of date version of Informix. / / esql -V will give you the version number. BIGINT support has been around for a while, including IDS 11.50, so I suspect you are using a fairly seriously out-of-date CSDK (3.00 or older). _/

define bigint long

/_ Cambio en locator.h: // } loc_t; } ifx_loc_t; typedef ifx_loc_t loct; / /_ Cambio en sqltypes.h: // #define SQLMAXTYPES 52

define SQLINFXBIGINT 52

define SQLBIGSERIAL 53

define SQLMAXTYPES 54

// #define CTYPEMAX 25

define CBIGINTTYPE 125

define CTYPEMAX 26

*/