On Thu, Feb 04, 2010 at 10:15:27PM +0100, Petr Jake?? wrote:
> > There is no currently. What do you want? To define an encoding for all
> > UnicodeCol'umns at once?
> >
> Yes, that was the main idea. When I am working with existing database, I do
> not declare columns manually (I am using fromDatabase = True).
fromDatabase machinery for MySQL takes into account parameters from DB
URI - 'use_unicode' and 'charset'. If use_unicode is set to True (1)
columnsFromSchema() replaces all StringCol by UnicodeCol with charset as
its dbEncoding.
Oleg.
--
Oleg Broytman http://phd.pp.ru/ ph...@ph...
Programmers don't die, they just GOSUB without RETURN.
|