Re: [HACKERS] problems with parser
Bruce Momjian <maillist@candle.pha.pa.us>
From: Bruce Momjian <maillist@candle.pha.pa.us>
To: Massimo Dal Zotto <dz@cs.unitn.it>
Cc: Thomas Lockhart <lockhart@alumni.caltech.edu>, PostgreSQL Hackers <hackers@postgreSQL.org>
Date: 1999-05-11T19:03:22Z
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@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026