On Wed, Jun 25, 2008 at 02:19:13PM +0200, Pietro Abate wrote: > if conn.dbName == 'sqlite': > conn.getConnection().create_collation("debian", mycollate) > > where mycollate is a simple comparison function. I'm still not sure if this > is possible or not...
I think it's possible but in the hard way. See how custom aggregate functions are implemented in the test suite: http://svn.colorstudy.com/SQLObject/trunk/sqlobject/tests/test_sqlite_factory.py > - How can I add the COLLATE contrains to one of my column while I'm creating > the > table ? I haven't found anything like StringCol(collate='debian') or > similar... > Is this possible, or I've to create the table 'manually' ? You can use customSQLType: StringCol(customSQLType='VARCHAR (255) COLLATE debian') Oleg. -- Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss