Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f7TMKff33271 for ; Wed, 29 Aug 2001 18:20:41 -0400 (EDT) (envelope-from olly@lfix.co.uk) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-31.mail.demon.net with esmtp (Exim 2.12 #1) id 15cDhO-0005n1-0V; Wed, 29 Aug 2001 23:20:38 +0100 Received: from lfix.co.uk (olly@localhost [127.0.0.1]) by localhost (8.12.0.Beta19/8.12.0.Beta19/Debian 8.12.0.Beta19) with ESMTP id f7TMKU3s008419; Wed, 29 Aug 2001 23:20:30 +0100 Message-Id: <200108292220.f7TMKU3s008419@linda.lfix.co.uk> X-Mailer: exmh version 2.3.1 01/18/2001 (debian 2.3.1-1) with nmh-1.0.4+dev X-URL: http://www.lfix.co.uk/oliver X-face: "xUFVDj+ZJtL_IbURmI}!~xAyPC"Mrk=MkAm&tPQnNq(FWxv49R}\>0oI8VM?O2VY+N7@F- KMLl*!h}B)u@TW|B}6 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 29 Aug 2001 23:20:30 +0100 From: "Oliver Elphick" X-Archive-Number: 200108/356 X-Sequence-Number: 4606 Jari Aalto wrote: > > Can anyone suggest, what is wrong with the following > sql file? SOmehow the semicolon causes error? ... >Granting ALL to USER >psql:pg-def-group-grant.sql:48: ERROR: parser: parse error at or near "user >" ... >32:GRANT ALL ON >33: bonus >34: , custid >35: , customer >36: , dept >37: , dual >38: , dummy >39: , emp >40: , item >41: , ordid >42: , ordx >43: , price >44: , prodid >45: , product >46: , sales >47: , salgrade >48: TO GROUP user; user is a reserved word; it should not have been accepted as a group name unless double-quoted, in which case you need to double-quote it every time you mention it. -- Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight http://www.lfix.co.uk/oliver PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47 GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C ======================================== "Preach the word; be instant in season, out of season; reprove, rebuke, exhort with all longsuffering and doctrine." II Timothy 4:2