on 1/10/2001 9:30 AM, "Carl Ludewig" <[EMAIL PROTECTED]> wrote:
> I've researched and discovered the bug I was experiencing with doUpdate.
> The "isNew()" flag on my Torque-generated objects always returns true,
> even if the object has already been saved to the DB. This caused an exception
> during doUpdate.
>
> I've modifed Torque so that the isNew flag is set correctly after
> a successful insert or select. This took care of my problem. Please
> review my patches below and let me know if it's OK to commit.
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);
> 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).
-jon
--
Honk if you love peace and quiet.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]