RE: Another bug with parse statements on - Mailing list pgsql-odbc

From Hiroshi Inoue
Subject RE: Another bug with parse statements on
Date
Msg-id EKEJJICOHDIEMGPNIFIJGEDBEDAA.Inoue@tpf.co.jp
Whole thread Raw
In response to Re: Another bug with parse statements on  ("Andrea Aime" <aaime@comune.modena.it>)
List pgsql-odbc
> -----Original Message-----
> From: Andrea Aime [mailto:aaime@comune.modena.it]
>
> > >
> > > 'SELECT min(classe) as minimo, max(classe) as massimo
> > > FROM tav974'
> > > (
> > >  is a carriage return...)
> > >
> >
> > What kind of errors do you see ?
> > I couldn't find any related ERRORs in your log.
> >
> --------------------------------------------
> nfld=1, ntab=1
> Field 0:  expr=0, func=1, quote=0, dquote=0, numeric=0, name='min',
> alias='', dot=''
> Table 0: name='tav974', alias=''
>
> nfld = 1? There are two fields in the result of my query. Moreover it

OK please try the following patch.

regards,
Hiroshi Inoue

Index: parse.c
===================================================================
RCS file: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/odbc/parse.c,v
retrieving revision 1.16
diff -c -c -r1.16 parse.c
*** parse.c    2001/03/27 04:00:54    1.16
--- parse.c    2001/04/23 08:59:18
***************
*** 393,398 ****
--- 393,401 ----
                  {
                      blevel--;
                      mylog("blevel-- = %d\n", blevel);
+                 }
+                 if (blevel == 0)
+                 {
                      if (delim == ',')
                      {
                          in_func = FALSE;


pgsql-odbc by date:

Previous
From: Hiroshi Inoue
Date:
Subject: Re: Postgres 7.1, iODBC and PHP4
Next
From: Hiroshi Inoue
Date:
Subject: Re: How to configure iodbc access to local postgres db?