On Oct 10, 2007, at 5:56 AM, Werner F. Bruhin wrote:
>
> Looking at the doc for 0.4 I see that I should be able to do this:
>
> result = engine.execute("select username from users")
> ... do something with the result
> result.close()
>
> But I am getting the following exception. Note that I am using
> Firebird
> SQL and the firebird.py is the one patched by Roger.
>
> Am I doing something wrong or is this not supported in 0.4?
>
> BTW, I would like to use this within a custom type ("class
> MyType(types.TypeDecorator):" to do the I18N translation similar to
> what
> Karsten suggested in another thread.
>
it looks like you are trying to execute SQL inside of a TypeEngine's
convert_result_value() method. the argument passed to that is
currently a Dialect, not an engine (also, issuing SQL inside of
convert_result_value(), not such a great idea in general...)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---