Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] symbol ':'

From: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
To: Michael Meskes <meskes(at)topsystem(dot)de>
Cc: PostgreSQL Hacker <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] symbol ':'
Date: 1998-03-26 15:18:34
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
> Where is this symbol used? I see now way to check for correct syntax 
> when ":a" can mean something else that the C variable a.

It's an allowed operator symbol assigned to a little-used math
operation. You can disallow it for embedded sql if you need to. Another
possibility though is to disallow it as an operator _unless_ it is
inside parentheses. I did a similar thing in gram.y in the BETWEEN/AND
parsing to allow the boolean "AND" operator to be used on the right side
of BETWEEN/AND. But maybe indicator variables are allowed to show up
inside expressions too, so this wouldn't work...

btw, I've been thinking about changing another operator symbol, ";",
because of the obvious parsing ambiguities with the SQL end of statement
symbol. We could change both ":" and ";" operators for v6.4??

                       - Tom

In response to

  • symbol ':' at 1998-03-26 12:45:58 from Michael Meskes


pgsql-hackers by date

Next:From: Michael MeskesDate: 1998-03-26 15:54:42
Subject: Re: [HACKERS] symbol ':'
Previous:From: Massimo Dal ZottoDate: 1998-03-26 15:16:55
Subject: Re: [HACKERS] patch for memory overrun on Linux(i386)

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group