[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

DBI::Row.column_names & case

ledestin

3/5/2005 8:55:00 AM

Hello,

There is difference in Oracle and Posgtres in the case of
column_names values. Column names are uppercase in Oracle and lowercase
in Postgres. It is not a good thing that I (a next level food chain
developer) have to think about the case when accessing columns. It
should be either standartized on low/upper case or transparently
compared with the values of COL_NAME as in row['COL_NAME'], IMHO.

PS. as an Oracle ruby dbi library I use oci8.

--
/Dmitry