pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: [SQL] Kind of Funny
3+ messages / 3 participants
[nested] [flat]

* Re: [SQL] Kind of Funny
@ 1999-01-06 02:22  Bruce Momjian <maillist@candle.pha.pa.us>
  parent: Frank Morton <fmorton@base2inc.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Bruce Momjian @ 1999-01-06 02:22 UTC (permalink / raw)
  To: fmorton@base2inc.com; +Cc: pgsql-sql

> Not thinking, as I often tend to do, I created a table named "order"
> and was confused to find the following query does not work:
> 
> select * from order;
> 
> I recognize that my name selection is questionable, but shouldn't
> this still work?

No.  Keywords are not over-loadable, as they are in Pascal, and to do it
is a real pain because the parser can't determine right away what it is.

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Kind of Funny
@ 1999-01-06 02:26  Frank Morton <fmorton@base2inc.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Frank Morton @ 1999-01-06 02:26 UTC (permalink / raw)
  To: pgsql-sql

Not thinking, as I often tend to do, I created a table named "order"
and was confused to find the following query does not work:

select * from order;

I recognize that my name selection is questionable, but shouldn't
this still work?





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* RE: [SQL] Kind of Funny
@ 1999-01-06 19:32  Jackson, DeJuan <djackson@cpsgroup.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Jackson, DeJuan @ 1999-01-06 19:32 UTC (permalink / raw)
  To: Bruce Momjian <maillist@candle.pha.pa.us>; fmorton@base2inc.com; +Cc: pgsql-sql


> > Not thinking, as I often tend to do, I created a table named "order"
> > and was confused to find the following query does not work:
> > 
> > select * from order;
> > 
> > I recognize that my name selection is questionable, but shouldn't
> > this still work?
> 
> No.  Keywords are not over-loadable, as they are in Pascal, 
> and to do it
> is a real pain because the parser can't determine right away 
> what it is.

But you can get at it if you quote your table name:
 select * from "order";

	-DEJ



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~1999-01-06 19:32 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-01-06 02:26 Kind of Funny Frank Morton <fmorton@base2inc.com>
1999-01-06 02:22 ` Bruce Momjian <maillist@candle.pha.pa.us>
1999-01-06 19:32 RE: [SQL] Kind of Funny Jackson, DeJuan <djackson@cpsgroup.com>

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