% is significant in DBAPIs like postgresql and mysqldb where pyformat and 
format:  %(foo)s and %s, are allowed, so % must be doubled.

On Feb 25, 2011, at 8:53 AM, Jon Nelson wrote:

> I've been wondering something about sqlalchemy - let's say I have a
> text column "foo". Being able to do foo.startswith(some_value),
> foo.endswith, foo.like and so on is really nice. However, I've noticed
> that the SQL that is emitted contains two percent signs. However, I
> thought only one was necessary. Why is sqlalchemy emitting two?
> 
> 
> -- 
> Jon
> 
> -- 
> 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.
> 

-- 
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.

Reply via email to