Le Thu, 25 Feb 2010 21:44:51 +0100,
Marcin Krol <mrk...@gmail.com> a écrit :
> SAWarning: Unicode type received non-unicode bind param value 'Jane
> Shmoe' param[key.encode(encoding)] =
> processors[key](compiled_params[key])
> 
[...]
> 
> I would need this to be error rather than warning just like docs say 
> (well I'd rather have it crash & then debug than write bad values
> into db)

To turn warnings into errors you just have to issue the right settings
to the standard "warnings" module:
http://docs.python.org/library/warnings.html

Regards

Antoine.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to