On Wednesday, January 10, 2001, at 10:43 AM, Jon Stevens wrote:

> on 1/10/2001 9:30 AM, "Carl Ludewig" <[EMAIL PROTECTED]> wrote: 
>  
> That one should be fine. However, please make sure to not use tab's as the 
> lines below look like there are tabs in them. 
>  
>          obj.setPrimaryKey(doInsert(buildCriteria(obj), dbCon)); 
> +       obj.setNew(false); 
>  
I hear you. I'll set things up so I filter tabs out in general and get the other
guys on my team to do the same.

> > Also, I removed a couple of toUpperCase() calls in MapBuilder.vm. 
> > It was capitalizing my column names although MySQL is using 
> > mixed case as specified in my XML schema. This caused my 
> > queries to fail, since MySQL is apparently case sensitive. It seems 
> > to make sense to leave the case as specified in the XML. 
>  
> This might be a problem. We standardized on having all uppercase column 
> names because some databases need to have that. Therefore, for portability 
> reasons, I suggest that you do the same with your code (even if today you 
> won't be using your stuff on other databases). 

It's not entirely under my control. We have a DBA here at AudioBase who
sets up the naming conventions for the db. In any case, if the XML is all uppercase,
it doesn't matter anyway and the toUpperCase is unnecessary. If it's an issue, 
I'd happy to add a feature to Torque that's allows one to turn all uppercase mode
on/off with a default of uppercase.

Carl


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to