Обсуждение: Is "OFFSET" a reserved word?
Hi,
My old DB schema which worked up thru Postgresql ver 6.4.2 has been broken in
ver 6.5.1 (running on an SGI).
CREATE TABLE Seq (
.....
Offset int not null,
....
);
now fails with a parse error at 'offset'. I don't see this word listed in the
reserved words page. When I change the word to SeqOffset, the schema works fine.
Mark
--
Mark Dalphin email: mdalphin@amgen.com
Mail Stop: 29-2-A phone: +1-805-447-4951 (work)
One Amgen Center Drive +1-805-375-0680 (home)
Thousand Oaks, CA 91320 fax: +1-805-499-9955 (work)
> Hi, > > My old DB schema which worked up thru Postgresql ver 6.4.2 has been broken in > ver 6.5.1 (running on an SGI). > > CREATE TABLE Seq ( > ..... > Offset int not null, > .... > ); > > now fails with a parse error at 'offset'. I don't see this word listed in the > reserved words page. When I change the word to SeqOffset, the schema works fine. Yes, now OFFSET is reserved: SELECT * FROM tab LIMIT 100 OFFSET 3 -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026