Hi

How do you set sql_mode when using SQLAlchemy ORM with MySQL?

For example, I would like to be able to do something equivalent to this:

SET sql_mode = 'STRICT_ALL_TABLES';

so as to get an error (instead of a warning) when string length exceeds
column size on INSERT.

Ideally I would like to be able to combine several SQL modes together.
List of available MySQL modes:
http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_sql_mode
.

Thanks!

-- 
http://people.eisenbits.com/~stf/
http://www.eisenbits.com/

OpenPGP: 80FC 1824 2EA4 9223 A986  DB4E 934E FEA0 F492 A63B

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to