[SQLObject] Re: _LikeQuoted(string) + '%'
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2004-11-24 12:54:13
|
On Tue, Nov 23, 2004 at 02:56:13PM +0300, Oleg Broytmann wrote: > > File "sqlbuilder.py", line 549, in STARTSWITH > > TypeError: unsupported operand type(s) for +: 'instance' and 'str' > > def STARTSWITH(expr, string): > return SQLOp("LIKE", expr, _LikeQuoted(string) + '%') > > _LikeQuoted is a class. How it is supoosed to work with "+"? > (also in ENDSWITH and CONTAINSSTRING). Simple but probably dumb fix attached. Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |