Re: [sqlalchemy] [BUG][PATCH] Function names not quoted when necessary

2013-06-07 Thread Michael Bayer
logged this as http://www.sqlalchemy.org/trac/attachment/ticket/2749 On Jun 6, 2013, at 10:27 PM, Ryan Kelly rpkell...@gmail.com wrote: Function names in SQL can contain pretty much anything, e.g.: =# create function A Bug?(integer) returns integer as $$ select $1; $$ language sql;

[sqlalchemy] [BUG][PATCH] Function names not quoted when necessary

2013-06-06 Thread Ryan Kelly
Function names in SQL can contain pretty much anything, e.g.: =# create function A Bug?(integer) returns integer as $$ select $1; $$ language sql; CREATE FUNCTION But when attempting to use the function from SQLAlchemy: from sqlalchemy.sql.expression import func bug = getattr(func, A Bug?)(1)