4 Feb 21:46
how to set dbEncoding for the whole table/database, not for the row?
Petr Jakeš <petr.jakes <at> tpc.cz>
2010-02-04 20:46:16 GMT
2010-02-04 20:46:16 GMT
Hi,
I know below code example works. I would like to know, if it is possible to set the encoding for the whole table at once (or for the connection/database) instead to define it for each column.
Petr
====== code example ============
class Customer(SQLObject):
_connection = connection
class sqlmeta:
idName = 'id_customer'
# fromDatabase = True
orders = MultipleJoin('Orders', joinColumn = "id_customer")
lastname = UnicodeCol(dbEncoding = "1250")
firstname = UnicodeCol(dbEncoding = "1250")
------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com
_______________________________________________ sqlobject-discuss mailing list sqlobject-discuss <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
RSS Feed