agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: J.Plewe <joerg.plewe@mpi-dortmund.mpg.de>
To: postgres@postgres.Berkeley.EDU
Subject: create:  syntax error
Date: Wed, 29 Jun 94 17:36:38 +0200
Message-ID: <9406291536.AA13564@dl.mpi-dortmund.mpg.de> (raw)

Sigh,

I'm quite new to Postgres and this may be the reason for having
so much problems. Sorry.

Now I failed with a create-statement and don't know why:


/* Definition der Klasse mvd_visfunc */

destroy mvd_visfunc
\g
create mvd_visfunc (
	classid = int4,
	function = text, 
	classname = text, 
	attribute = text
	 )
\g


Query sent to backend is "create mvd_visfunc ( 	classid = int4, 	function = 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??


- Joerg


*********************************************************************
Dipl. Phys. Joerg Plewe               joerg.plewe@mpi-dortmund.mpg.de
MPI fuer molekulare Physiologie
Rheinlanddamm 201
44139 Dortmund
Germany                               +49 (0)231 1206 384
*********************************************************************



==============================================================================
   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: joerg.plewe@mpi-dortmund.mpg.de
  Subject: Re: create:  syntax error
  In-Reply-To: <9406291536.AA13564@dl.mpi-dortmund.mpg.de>

* 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