[sqlalchemy] Re: Oracle binding problem: (DatabaseError) ORA-01036: illegal variable name/number

2010-05-06 Thread Tobias
By accident I found out that the SQLAlchemy Function class has an attribute 'packagenames'. If you set this attribute manually, the query is executed properly. It would be great if this attribute is filled automatically by splitting the function name on every dot.

Re: [sqlalchemy] Re: Oracle binding problem: (DatabaseError) ORA-01036: illegal variable name/number

2010-05-06 Thread Michael Bayer
On May 6, 2010, at 7:47 AM, Tobias wrote: By accident I found out that the SQLAlchemy Function class has an attribute 'packagenames'. If you set this attribute manually, the query is executed properly. It would be great if this attribute is filled automatically by splitting the function

Re: [sqlalchemy] Re: Oracle binding problem: (DatabaseError) ORA-01036: illegal variable name/number

2010-05-06 Thread Tobias Sauerwein
Thanks for your reply! I always thought that func.package.name(..) would be the same as calling getattr(func, 'package.name')(..), but now I understand how the class _FunctionGenerator works. :) Because I only have the function name as string, I can't use the func.xy construct. I am now manually