On 14/10/2010 17:10, Michael Bayer wrote:

I get passed a bunch of sql to execute, I don't have control over that.
Where do I wire in Numeric(as_decimal=False) and how do I tell where I need to 
given an arbitrary select as a string of sql?

text() is in the docs, including an example of typemap:

http://www.sqlalchemy.org/docs/core/expression_api.html?highlight=text#sqlalchemy.sql.expression.text

Okay, but I don't see how a typemap helps.
All I'm getting is a string of sql, I don't know what column names are included in that, and even if I did, I wouldn't know the schema of the table to know what they should be mapped to.

How can I influence what column type is mapped to a particular python type without knowing the names or types of the columns?

cheers,

Chris

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

Reply via email to