we no longer make the assumption that the right side of an expression is the 
same type as that of the left (since it is not true in many cases).  So you 
must coerce manually:

literal('programming-lang', LabelTree)


On Feb 26, 2010, at 12:00 PM, Manlio Perillo wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi.
> 
> It seems that changeset b89c179b0daf (from Mercurial repository) broke
> user defined types handling.
> 
> Here is a program that reproduces the problem:
> http://paste.pocoo.org/show/183084/
> Here is the output of the program:
> http://paste.pocoo.org/show/183086/
> 
> Basically (without the need for such a complex program) the
> `bind_processor` method is no more called for a select statement (it is
> only called for the insert statement).
> 
> I'm getting ProgrammingError, since the `ltree` type does not support
> the '-' character (that's why I need to escape the value).
> 
> 
> 
> Thanks  Manlio
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iEYEARECAAYFAkuH/kYACgkQscQJ24LbaUQQ3ACfTGhr7sYjmDo4HrEkJ9MzXdmR
> VkEAnjFsEhCkTnCuyuuPCByCAmU+sTUQ
> =uAQ5
> -----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.

Reply via email to