Re: Error in convert.c when compiling w/ odbcver=0x0300

From: Walt H <waltabbyh(at)comcast(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: Error in convert.c when compiling w/ odbcver=0x0300
Date: 2003-10-24 14:11:40
Message-ID: 3F99331C.7070804@comcast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Bruce Momjian wrote:
> Can you suggest a patch to fix this?
>
> ---------------------------------------------------------------------------
>

I'm sorry, it's been a while since I posted this. I found a workaround and was able to get it
compile since then. From what I remember, it has to do with the way SQLBIGINT was defined from
unixodbc. I believe it is defined as en element of a struct, which created the "incompatible
types" error I received. Since I'm not all too familiar with C, I cheated and created:

typedef long long int mySQLBIGINT;
typedef unsigned mySQLBIGINT mySQLUBIGINT;

at the top of convert.c and replaced the variables used down below with mySQLBIGINT etc... This
allows it to compile. What a nasty hack.

So to answer your original question: I don't think you want my patch :)

-Walt

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message w fm3 2003-10-25 18:39:52 Update rule on view with multiple tables fails?
Previous Message Jean Huveneers 2003-10-24 04:51:28 Re: how to disable Logs!!!!