If this fixes the problem, I'm all for this solution. I've added the change to cvs.
Julia Stobbe wrote:
>
> Hi,
>
> this problem crops up regularly in the mail archive, but doesn`t seem to be
> fixed:
> i switched a working mysql based testApp to a postgreSQL database (using
> cvs snapshot from 20010206). after setting everything up successfully, i
> could not login, because postgres returns column names in lowercase -
> TurbinePeers expect uppercase names.
>
> (btw: informix-users have the same problem according to the mail archive).
>
> the best place to fix this seems to be in class BasePeer :
>
> public static String [] initColumnNames(Column[] columns)
> {
> String[] columnNames = null;
> columnNames = new String columns.length()];
> for (int i = 0; i < columns.length; i++)
> {
> // initialize columnNames uppercase
> columnNames[i} = columns [i].name().toUpperCase();
> }
> return columnNames;
> }
>
> This should not break anything else, the names are supposed to be uppercase
> anyway...
>
> Julia
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]