Return-Path: owner-postman
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id KAA02203 for postgres-redist; Wed, 29 Jun 1994 10:33:21 -0700
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199406291733.KAA02203@nobozo.CS.Berkeley.EDU>
X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from gaia.CS.Berkeley.EDU (gaia.CS.Berkeley.EDU [128.32.149.47]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with ESMTP id KAA02188 for <postgres@postgres.Berkeley.EDU>; Wed, 29 Jun 1994 10:33:20 -0700
Received: from localhost (avi@localhost) by gaia.CS.Berkeley.EDU (8.6.4/8.6.3) id KAA06406; Wed, 29 Jun 1994 10:33:10 -0700
Message-Id: <199406291733.KAA06406@gaia.CS.Berkeley.EDU>
To: joerg.plewe@mpi-dortmund.mpg.de (J.Plewe)
cc: postgres@postgres.Berkeley.EDU
Subject: Re: create: syntax error 
In-reply-to: Your message of "Wed, 29 Jun 1994 17:36:38 +0200."
             <9406291536.AA13564@dl.mpi-dortmund.mpg.de> 
Date: Wed, 29 Jun 1994 10:33:10 -0700
From: avi pfeffer <avi@postgres.Berkeley.EDU>
Resent-To: postgres-redist@postgres.Berkeley.EDU
Resent-Date: Wed, 29 Jun 94 10:33:20 -0700
Resent-XMts: smtp

> 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.
==============================================================================
