pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedcase sensitivity for tables, columns, and constraint names
4+ messages / 4 participants
[nested] [flat]
* case sensitivity for tables, columns, and constraint names
@ 2007-12-11 17:05 Ertel, Steve <Steve.Ertel@infimatic.com>
2007-12-11 17:24 ` Re: case sensitivity for tables, columns, and constraint names A. Kretschmer <andreas.kretschmer@schollglas.com>
2007-12-11 17:30 ` Re: case sensitivity for tables, columns, and constraint names Andrew Sullivan <ajs@crankycanuck.ca>
2007-12-11 17:35 ` Re: case sensitivity for tables, columns, and constraint names Richard Huxton <dev@archonet.com>
0 siblings, 3 replies; 4+ messages in thread
From: Ertel, Steve @ 2007-12-11 17:05 UTC (permalink / raw)
To: pgsql-sql
I see that I can create a table with a mixed case name as long as the name is wrapped in quotes. Is there a setting to allow upper case and mixed case names for database tables, fields, etc, without having to wrap each in quotes?
Thanks,
SteveE
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: case sensitivity for tables, columns, and constraint names
2007-12-11 17:05 case sensitivity for tables, columns, and constraint names Ertel, Steve <Steve.Ertel@infimatic.com>
@ 2007-12-11 17:24 ` A. Kretschmer <andreas.kretschmer@schollglas.com>
2 siblings, 0 replies; 4+ messages in thread
From: A. Kretschmer @ 2007-12-11 17:24 UTC (permalink / raw)
To: pgsql-sql
am Tue, dem 11.12.2007, um 11:05:25 -0600 mailte Ertel, Steve folgendes:
>
> I see that I can create a table with a mixed case name as long as the name is
> wrapped in quotes. Is there a setting to allow upper case and mixed case names
> for database tables, fields, etc, without having to wrap each in quotes?
No.
Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: case sensitivity for tables, columns, and constraint names
2007-12-11 17:05 case sensitivity for tables, columns, and constraint names Ertel, Steve <Steve.Ertel@infimatic.com>
@ 2007-12-11 17:30 ` Andrew Sullivan <ajs@crankycanuck.ca>
2 siblings, 0 replies; 4+ messages in thread
From: Andrew Sullivan @ 2007-12-11 17:30 UTC (permalink / raw)
To: pgsql-sql
On Tue, Dec 11, 2007 at 11:05:25AM -0600, Ertel, Steve wrote:
> is wrapped in quotes. Is there a setting to allow upper case and mixed
> case names for database tables, fields, etc, without having to wrap each
> in quotes?
No, sorry. The always-one-case rule for unquoted identifiers is ANSI
conformant. As it happens, the ANSI rule also makes everything ALLCAPS, but
PostgreSQL doesn't go that way (for historical reasons).
A
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: case sensitivity for tables, columns, and constraint names
2007-12-11 17:05 case sensitivity for tables, columns, and constraint names Ertel, Steve <Steve.Ertel@infimatic.com>
@ 2007-12-11 17:35 ` Richard Huxton <dev@archonet.com>
2 siblings, 0 replies; 4+ messages in thread
From: Richard Huxton @ 2007-12-11 17:35 UTC (permalink / raw)
To: Ertel, Steve <Steve.Ertel@infimatic.com>; +Cc: pgsql-sql
Ertel, Steve wrote:
> I see that I can create a table with a mixed case name as long as the
> name is wrapped in quotes. Is there a setting to allow upper case
> and mixed case names for database tables, fields, etc, without having
> to wrap each in quotes?
No, SQL defines identifiers as case-insensitive.
PG is unusual in that left alone it folds names to lower-case rather
than upper, but all SQL databases (afaik) are case-insensitive by default.
--
Richard Huxton
Archonet Ltd
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2007-12-11 17:35 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-12-11 17:05 case sensitivity for tables, columns, and constraint names Ertel, Steve <Steve.Ertel@infimatic.com>
2007-12-11 17:24 ` A. Kretschmer <andreas.kretschmer@schollglas.com>
2007-12-11 17:30 ` Andrew Sullivan <ajs@crankycanuck.ca>
2007-12-11 17:35 ` Richard Huxton <dev@archonet.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