On Tue, Jun 14, 2011 at 3:46 PM, Michael Bayer <[email protected]> wrote:
> On Jun 14, 2011, at 3:17 AM, Eric Lemoine wrote:
>
> Here's our TypeEngine:
>
>
>
> So dialect-specific parameters are stored in self.kwargs.
>
> I can try to add a test to SQLAlchemy if you indicate me where this
> test should go.
>
> thanks,  I need to add the elements of it to the user-defined types tests in
> test.sql.test_types.   I also want to figure out what that
> _compiler_dispatch call is about,

I talked to Tobias Sauerwein, who wrote this code. Here's his answer:

-------
We had to do this for MS-SQL. Take a look at
'mssql.CastDBSpatialElementFunction':
<https://bitbucket.org/geoalchemy/geoalchemy/src/b2e6de8b2b1a/geoalchemy/mssql.py#cl-83>

The function '_compiler_dispatch' just makes sure, that we are using
the correct geometry type in the cast.
------

> have you tried subclassing UserDefinedType
> instead ?

Not yet. If you tell me that's what we should do I'll give it a try.


Cheers,


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com

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

Reply via email to