Difficulties Storing Case Sensitive DDL Definitions
Difficulties Storing Case Sensitive DDL Definitions
От:
"Lane Van Ingen" <lvaningen@esncc.com>
Дата:
We are in the process of converting a legacy application to PostgreSQL, using Windows 2003, version 8.0.1. We have been noticing (via pgAdmin) that when we create a view, PostgreSQL appears to 'flatten' all of our DDL statements to lowercase. Because the legacy code is messy and undocumented, and because it uses names that are a mixture of uppercase and lowercase, we felt it would be a better to create a separate schema with views of the same name as the tables we are converting, and use the view to return rows to the app that have the mixture of upper- and lowercase letters it desires. For instance, here is a field that we tried to create in a view: as input by our CREATE VIEW statements : updatedTime as stored in PostgreSQL, and viewed by pgAdmin : updatedtime The application is issuing a query statement that wants 'updatedTime', like this: select updatedTime from
Re: Difficulties Storing Case Sensitive DDL Definitions
От:
Sean Davis <sdavis2@mail.nih.gov>
Дата:
On 11/15/05 4:42 PM, "Lane Van Ingen" wrote: > We are in the process of converting a legacy application to PostgreSQL, > using Windows 2003, version 8.0.1. > > We have been noticing (via pgAdmin) that when we create a view, PostgreSQL > appears to 'flatten' all of our DDL statements to lowercase. Because the > legacy code is messy and undocumented, and because it uses names that are a > mixture of uppercase and lowercase, we felt it would be a better to create a > separate schema with views of the same name as the tables we are converting, > and use the view to return rows to the app that have the mixture of upper- > and lowercase letters it desires. > > For instance, here is a field that we tried to create in a view: > as input by our CREATE VIEW statements : updatedTime > as stored in PostgreSQL, and viewed by pgAdmin : updatedtime > The application is issuing a query statement that wants 'updatedTime', like > this: > select updatedTime from
Re: Difficulties Storing Case Sensitive DDL Definitions
От:
Martin Foster <martin@ethereal-realms.org>
Дата:
Lane Van Ingen wrote: > We are in the process of converting a legacy application to PostgreSQL, > using Windows 2003, version 8.0.1. > > We have been noticing (via pgAdmin) that when we create a view, PostgreSQL > appears to 'flatten' all of our DDL statements to lowercase. Because the > legacy code is messy and undocumented, and because it uses names that are a > mixture of uppercase and lowercase, we felt it would be a better to create a > separate schema with views of the same name as the tables we are converting, > and use the view to return rows to the app that have the mixture of upper- > and lowercase letters it desires. > > For instance, here is a field that we tried to create in a view: > as input by our CREATE VIEW statements : updatedTime > as stored in PostgreSQL, and viewed by pgAdmin : updatedtime > The application is issuing a query statement that wants 'updatedTime', like > this: > select updatedTime from