I'm going to revert the fix.

I'm going to add tests for mixed-case column and table names.  If you care
to donate some of these tests, that'd be great.

Please open a ticket.

On Sat, Oct 31, 2009 at 5:35 AM, Troy Noble <[email protected]> wrote:

> After the fix, I'm having a different problem now with latest 1.1-SNAPSHOT
> (10/30 1:54:48PM build) with tables in the DB that have uppercase anywhere
> in either the dbTableName or dbColumnName name... the Mapper is creating SQL
> that throws exceptions due to unknown column in MySQL (which is case
> sensitive on naming).
>
> David, I sent you an offline e-mail with all the details.  I can open
> another ticket if you want.  I am willing to keep testing with MySQL if you
> want as we work through these issues.
>
> I wish H2 or one of the other embedded databases supported case sensitive
> table & column names so I could give you a tidy offline test case.  H2 does
> not appear to support case sensitive names unless you surround them with
> double quotes such as "TABLE_NAME".
>
> I know I'm not supposed to use MySQL per earlier postings on this list, but
> I have about 15 databases already existing in MySQL and we wanted to start
> using Lift with some of them.  It'll take me quite some time to re-target
> Postgres or other DBMS.
>
> Thanks again for all your help, Troy
>
>
> On Fri, Oct 30, 2009 at 4:13 PM, David Pollak <
> [email protected]> wrote:
>
>>
>>
>> On Fri, Oct 30, 2009 at 3:06 PM, Troy Noble <[email protected]> wrote:
>>
>>> Thanks. I'll give it try.  Dumb newbie question though... how do I access
>>> the update?  Git + build from github, or can I just grab the latest
>>> 1.1-SNAPSHOT?
>>>
>>
>> Check http://hudson.scala-tools.org/job/Lift/
>>
>> You can see if the latest has built.
>>
>> Then do: mvn -U clean install jetty:run
>>
>> The "-U" forces Maven to check the repositories for the latest.
>>
>>
>>>
>>> Thanks again, Troy
>>>
>>> On Fri, Oct 30, 2009 at 3:01 PM, David Pollak <
>>> [email protected]> wrote:
>>>
>>>> Turns out this was the problem.  Some RDBMSs are case insensitive on
>>>> table/column names... others are not.
>>>>
>>>> I committed a fix (now on master thanks to fast review board
>>>> turn-around) that causes all table and column names to lower case for all
>>>> SQL transactions.
>>>>
>>>> 2009/10/30 Marcin Mielżyński <[email protected]>
>>>>
>>>>
>>>>> I have seen EXACTLY same behavior when dbColumnName returned _upcased_
>>>>> names
>>>>>
>>>>> lopex
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Lift, the simply functional web framework http://liftweb.net
>>>> Beginning Scala http://www.apress.com/book/view/1430219890
>>>> Follow me: http://twitter.com/dpp
>>>> Surf the harmonics
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>> --
>> Lift, the simply functional web framework http://liftweb.net
>> Beginning Scala http://www.apress.com/book/view/1430219890
>> Follow me: http://twitter.com/dpp
>> Surf the harmonics
>>
>>
>>
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to