Re: [HACKERS] problems with parser

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Massimo Dal Zotto <dz(at)cs(dot)unitn(dot)it>
Cc: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>, PostgreSQL Hackers <hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] problems with parser
Date: 1999-05-11 19:03:22
Message-ID: 199905111903.PAA21351@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

[Charset ISO-8859-1 unsupported, filtering to ASCII...]
> >
> > > > I have some problems with the parser.
> > > > 1) Of the following queries, submitted with libpgtcl,
> >
> > Massimo, what version of Postgres are you running? Is this a new
> > problem in the v6.5 beta (which includes a few changes from Stefan
> > which might have adversely affected the behavior)?
>
> It was a snapshot of 10-15 days ago. I have seen the problem also in
> previous snapshots. The problem is in the grammar in the definition
> of multiple queries but unfortunately I don't know yacc enough to fix
> the bug.

The bug still exists. Just start 'postgres' manually without the
postmaster, and type in a query:

#$ aspg gdb /u/pg/bin/postgres
GNU gdb
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i386-unknown-bsdi4.0"...run -
(gdb) run -D /u/pg/data test
Starting program: /u/pg/bin/postgres -D /u/pg/data test

POSTGRES backend interactive interface
$Revision: 1.111 $ $Date: 1999/05/09 23:31:47 $

> select 1; select 2
ERROR: parser: parse error at or near ""
ERROR: parser: parse error at or near ""

> select 1;select 2;
blank
1: ?column? (typeid = 23, len = 4, typmod = -1, byval = t)
----
1: ?column? = "1" (typeid = 23, len = 4, typmod = -1, byval = t)
----
blank
1: ?column? (typeid = 23, len = 4, typmod = -1, byval = t)
----
1: ?column? = "2" (typeid = 23, len = 4, typmod = -1, byval = t)
----

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1999-05-11 19:06:11 Re: [HACKERS] 6.5 TODO list
Previous Message Vince Vielhaber 1999-05-11 19:03:10 RE: [HACKERS] web site addition