agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: avi pfeffer <avi@postgres.Berkeley.EDU>
To: J.Plewe <joerg.plewe@mpi-dortmund.mpg.de>
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: create: syntax error
Date: Wed, 29 Jun 1994 10:33:10 -0700
Message-ID: <199406291733.KAA06406@gaia.CS.Berkeley.EDU> (raw)
In-Reply-To: <9406291536.AA13564@dl.mpi-dortmund.mpg.de>

> create mvd_visfunc (
> 	classid = int4,
> 	function = text, 
> 	classname = text, 
> 	attribute = text
> 	 )
> \g
> 
> 
> Query sent to backend is "create mvd_visfunc ( 	classid = int4, 	functio
> n = text,  	classname = text,  	attribute = text 	 ) "
> WARN:Jun 29 15:25:33:parser: syntax error at or near "function"
> 
> 
> When I replace 'function' against 'funcname' it works. Why??

"function" is a reserved word in POSTQUEL so the parser chokes when
you try to use it as an attribute name.

Avi

==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"

   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================



reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: postgres@postgres.berkeley.edu
  Cc: avi@postgres.Berkeley.EDU, joerg.plewe@mpi-dortmund.mpg.de
  Subject: Re: create: syntax error
  In-Reply-To: <199406291733.KAA06406@gaia.CS.Berkeley.EDU>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox