On Thursday 28 September 2006 20:16, Oleg Broytmann wrote:
> On Thu, Sep 28, 2006 at 02:04:00PM -0300, Loic Jeannin wrote:
> > http://www.tahorg.net/stuff/sqlobject-mysql-bug
>
>    I think this should be solved with a proper style.

I think the original's poster patch is the right thing to do. I've come 
across this issue myself when testing sqlobject over an existing 
database. I never used fromDatabase other than for occasional tests, so 
it didn't bother me to the point of trying to fix it, but what the patch 
that was posted do make sense. In fact it makes a lot more sense to me to 
set the dbName of the column to the one obtained from the database, 
instead of relying on a "proper style" which should convert from a name 
to the ... same name, wasting time to perform a useless operation.

I really fail to see any reason to use a style here, when simply setting 
dbName to the field name as obtained from the database will do.
Using a style only makes sense when we describe the sqlobject side of the 
things and we need it to generate database field names according to a 
style we use, not when the field names are already known from the db.

>
> Oleg.

-- 
Dan

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to