pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedProblem : Sql queries are created in lowercase
2+ messages / 2 participants
[nested] [flat]
* Problem : Sql queries are created in lowercase
@ 2006-10-01 18:47 Josep <josepk@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Josep @ 2006-10-01 18:47 UTC (permalink / raw)
To: pgsql-jdbc
Hi friends,
I am using postgresql 81 and I have seen that when you launch an sql
sentence with psql admin III of create for example :
CREATE TABLE CONTACT
(
id int8 NOT NULL,
firstname varchar(255),
lastname varchar(255),
email varchar(255),
CONSTRAINT contact_pkey PRIMARY KEY (id)
)
WITHOUT OIDS;
ALTER TABLE CONTACT OWNER TO prova;
Then this table is created but in lowercase :-( , if you create the
table manually then is created how you put( lowerCase or UpperCase).
When using JDBC its happend the same, if I created a table from jdbc
with uppercase then is created in lowercase and this is a problem
becouse if you launch a select searching "contact" is not the same that
searching "CONTACT" and all goes bad :-(.
I have tryed with all drivers of jdbdc of postresql and the same
happens.
Some Idea?
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Problem : Sql queries are created in lowercase
@ 2006-10-01 21:15 Euler Taveira de Oliveira <euler@timbira.com>
parent: Josep <josepk@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Euler Taveira de Oliveira @ 2006-10-01 21:15 UTC (permalink / raw)
To: Josep <josepk@gmail.com>; +Cc: pgsql-jdbc
Josep wrote:
> Then this table is created but in lowercase :-( , if you create the
> table manually then is created how you put( lowerCase or UpperCase).
>
No. See the documentation [1]. "Identifier and key word names are case
insensitive." So all names are lower case before created unless you
quote them. This is per SQL standard.
[1]
http://www.postgresql.org/docs/8.1/static/sql-syntax.html#SQL-SYNTAX-IDENTIFIERS
--
Euler Taveira de Oliveira
http://www.timbira.com/
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2006-10-01 21:15 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-10-01 18:47 Problem : Sql queries are created in lowercase Josep <josepk@gmail.com>
2006-10-01 21:15 ` Euler Taveira de Oliveira <euler@timbira.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