![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
When I use capital letter(s) in table or view name Hibernate complains it can't find the relation. ![]() Is this known issue or am I doing something wrong? |
#3
| |||
| |||
|
|
Jaroslav Záruba wrote: When I use capital letter(s) in table or view name Hibernate complains it can't find the relation. ![]() Is this known issue or am I doing something wrong? Yes, using capital letters in table or view, or column or whatever identifiers is sinful and wrong. |
#4
| |||
| |||
|
|
Yes, using capital letters in table or view, or column or whatever identifiers is sinful and wrong. You are saying that the SQL standard is sinful and wrong. |
#5
| |||
| |||
|
|
Marco Mariani wrote: Jaroslav Záruba wrote: When I use capital letter(s) in table or view name Hibernate complains it can't find the relation. ![]() Is this known issue or am I doing something wrong? Yes, using capital letters in table or view, or column or whatever identifiers is sinful and wrong. You are saying that the SQL standard is sinful and wrong. That's not PostgreSQL's position. |
#6
| |||
| |||
|
|
Marco Mariani wrote: Jaroslav Záruba wrote: When I use capital letter(s) in table or view name Hibernate complains it can't find the relation. ![]() Is this known issue or am I doing something wrong? Yes, using capital letters in table or view, or column or whatever identifiers is sinful and wrong. You are saying that the SQL standard is sinful and wrong. That's not PostgreSQL's position. To the original question: PostgreSQL folds all names to lower case unless you surround them with double quotes. I don't know how this can be done in Hibernate, but it would be the solution. |

|
Yours, Laurenz Albe |
#7
| |||
| |||
|
|
Jaroslav Z ruba wrote: When I use capital letter(s) in table or view name Hibernate complains it can't find the relation. ![]() Is this known issue or am I doing something wrong? Yes, using capital letters in table or view, or column or whatever identifiers is sinful and wrong. |

#8
| |||
| |||
|
|
Yes, I'm aware of that PostgresSQL's behaviour. I hoped someone with Hibernate experience would shed some light on this. Like whether this is known bug, |
and who is the one blame - Hibernate or the PostgreSQLdriver? ![]() |
#9
| |||
| |||
|
|
On Wed, 09 Dec 2009 08:49:46 -0800, Jaroslav Záruba wrote: Yes, I'm aware of that PostgresSQL's behaviour. I hoped someone with Hibernate experience would shed some light on this. Like whether this is known bug, Nope, it's an expected behavior. PostgreSQL can use tables with capital letters, only enclosed in double quotes. and who is the one blame - Hibernate or the PostgreSQLdriver? ![]() Why, Hibernate of course! This is a PostgreSQL forum, after all. There is no blame in this case, though. *You'll just have to rewrite your queries. --http://mgogala.byethost5.com |
#10
| |||
| |||
|
|
On Wed, 09 Dec 2009 08:49:46 -0800, Jaroslav Záruba wrote: Yes, I'm aware of that PostgresSQL's behaviour. I hoped someone with Hibernate experience would shed some light on this. Like whether this is known bug, Nope, it's an expected behavior. PostgreSQL can use tables with capital letters, only enclosed in double quotes. |
and who is the one blame - Hibernate or the PostgreSQLdriver? ![]() Why, Hibernate of course! This is a PostgreSQL forum, after all. There is no blame in this case, though. *You'll just have to rewrite your queries. |
![]() |
| Thread Tools | |
| Display Modes | |
| |