From: Oliver Elphick <olly@lfix.co.uk>
To: posting-list@MailAndNews.com
Cc: pgsql-sql@postgresql.org
Subject: Re: GRANT ALL ON TO GROUP failure
Date: Wed, 29 Aug 2001 23:20:30 +0100
Message-ID: <200108292220.f7TMKU3s008419@linda.lfix.co.uk> (raw)
In-Reply-To: <itf61rsf.fsf@blue.sea.net>
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
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: pgsql-sql@postgresql.org
Cc: olly@lfix.co.uk, posting-list@MailAndNews.com
Subject: Re: GRANT ALL ON TO GROUP failure
In-Reply-To: <200108292220.f7TMKU3s008419@linda.lfix.co.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox