From: Oleg B. <ph...@ph...> - 2008-10-01 19:11:31
|
On Wed, Oct 01, 2008 at 03:41:09PM -0300, Leandro Sales wrote: > qname = "www.domain1.com" > domain = Domain.select("""'""" + qname + """' LIKE CONCAT('%', domain.name)""") from sqlobject.sqlbuilder import SQLConstant domain = Domain.select(SQLConstant('www.domain1.com').endswith(Domain.q.name)) Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |