On Tue, Nov 27, 2007 at 10:02:24PM +0200, Dan Pascu wrote:
> Ok, makes sense not to set it everytime a new connection object is 
> created. But then how about the other things that get set below in the 
> if using_sqlite2 block that starts at line 51 in sqliteconnection.py (in 
> the trunk version):
> 
> for col_type 
> in "text", "char", "varchar", "date", "time", "datetime", "timestamp":
>     sqlite.register_converter(col_type, stop_pysqlite2_converting_strings)
>     sqlite.register_converter(col_type.upper(), 
> stop_pysqlite2_converting_strings)
> global sqlite2_Binary
> if sqlite2_Binary is None:
>     sqlite2_Binary = sqlite.Binary
>     sqlite.Binary = lambda s: sqlite2_Binary(sqlite.encode(s))
> 
> Shouldn't these also only be done once after the module import?

   Yes, good catch. Would you fix and test that yourself?

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to