X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id CD1BED1B55C for ; Fri, 24 Oct 2003 14:12:11 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 95660-07 for ; Fri, 24 Oct 2003 11:11:44 -0300 (ADT) Received: from waltsathlon.localhost.net (12-229-144-126.client.attbi.com [12.229.144.126]) by svr1.postgresql.org (Postfix) with ESMTP id 67741D1B525 for ; Fri, 24 Oct 2003 11:11:40 -0300 (ADT) Received: from 127.0.0.1 (unknown [127.0.0.1]) by injector.domain.extention (Postfix) with SMTP id 699EB2B32FE; Fri, 24 Oct 2003 14:11:41 +0000 (UTC) Received: from comcast.net (waltsathlon.localhost.net [192.168.0.1]) by waltsathlon.localhost.net (Postfix) with ESMTP id 953D42B32EA; Fri, 24 Oct 2003 07:11:40 -0700 (PDT) Message-ID: <3F99331C.7070804@comcast.net> Date: Fri, 24 Oct 2003 07:11:40 -0700 From: Walt H User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031019 X-Accept-Language: en-us MIME-Version: 1.0 To: Bruce Momjian Cc: pgsql-odbc@postgresql.org Subject: Re: Error in convert.c when compiling w/ odbcver=0x0300 References: <200310240230.h9O2UmG25354@candle.pha.pa.us> In-Reply-To: <200310240230.h9O2UmG25354@candle.pha.pa.us> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/81 X-Sequence-Number: 3394 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