Manlio Perillo wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Michael Bayer ha scritto: >> Manlio Perillo wrote: >>> However, now I'm not sure to understand the example here: >>> http://www.sqlalchemy.org/docs/reference/sqlalchemy/expressions.html?highlight=exists#sqlalchemy.sql.expression.exists >>> >>> # use on an existing select() >>> s = select([table.c.col1]).where(table.c.col2==5) >>> s = exists(s) >> >> wow, look at that. I'm glad exists() accepts that, since it seemed >> awkward that one would be required to say exists([someselect]). your >> call to as_scalar() was throwing it off. It is accepted in the same way >> now as a plain select() in r6702. >> > > By the way; with another query (but still using exists and case) I get > this error: > > TypeError: self_group() takes exactly 2 arguments (1 given) > /usr/local/lib/python2.5/site-packages/sqlalchemy/sql/expression.py, > line 2411: > (_literal_as_binds(c).self_group(), _literal_as_binds(r)) for (c, r) in > whens > > > It is probable that this query is broken, too. > Or it may be a bug in SQLAlchemy.
heard about that one the other day, just one of the self_groups() had a bad signature, committed that in r6703. > > If required, I can try to write a minimal example that reproduces the > problem. > > > Regards Manlio > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAktiBZsACgkQscQJ24LbaUQgQACeJWYpAlkSloQZD/jBqUfNYApQ > 7iMAn2eWtTI3dTBqjUCj13DOmjY6rPBN > =RIh0 > -----END PGP SIGNATURE----- > > -- > 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. > > -- 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.