Re: [Modeling-users] MySQL TEXT
Status: Abandoned
Brought to you by:
sbigaret
|
From: Yannick G. <yan...@sa...> - 2003-03-07 15:30:57
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 06 March 2003 06:37 pm, Sebastien Bigaret wrote:
> (SQL types should be lower-cased)
>
>
> This should work ; please report and I'll apply the patch when you
> confirm that this is ok.
Noop but almost :
######### patch beg ##########
- --- old_MySQLAdaptorLayer/MySQLSQLExpression.py 2003-03-07 10:19:57.000000000
- -0500
+++ MySQLSQLExpression.py 2003-02-01 06:59:13.000000000 -0500
@@ -33,7 +33,7 @@
__version__='$Revision: 1.2 $'[11:-2]
- -from Modeling.SQLExpression import SQLExpression, DateType, CharacterType
+from Modeling.SQLExpression import SQLExpression, DateType
class MySQLSQLExpression(SQLExpression):
"""
@@ -77,5 +77,5 @@
"""
values=SQLExpression.valueTypeForExternalTypeMapping.im_func(self)
del values['timestamp']
- - values.update({ 'datetime': DateType , 'text': CharacterType})
+ values.update({ 'datetime': DateType })
return values
######### patch end ##########
I just need to import CharacterType and it works perfectly.
Thanks for the super fast answer !
- --
Yannick Gingras
Byte Gardener, Savoir-faire Linux inc.
(514) 276-5468
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+aLsvrhy5Fqn/MRARAhJIAJsH8EAmpSr9X6DITvcy/oiOqLdUyQCfXKI5
3OHlHnh32aHsv8AqUh1WjOE=
=acp6
-----END PGP SIGNATURE-----
|