[orm-devel] Update problem - string quoting

Werner F. Bruhin orm-devel@mailman.tux4web.de
Mon, 03 Mar 2003 12:20:35 +0100


Hi Diedrich,

Isn't this a bit confusion, in insert we do this:

w = test(WINENAME='some new ORM stuff')

but in update I have to think of putting in the escaped quotes, or is 
just me?

See you
Werner

Diedrich Vorberg wrote:

>Hi Werner,
>
>  
>
>>ds.update(w, 'winename', 'some really new stuff')
>>
>>When escaping a set of quotes it works.
>>
>>ds.update(w, 'winename', '\'some really new stuff\'')
>>    
>>
>
>this is the desired behaviour, the 2nd argument is ment to be an SQL 
>literal to go in the UPDATE statement.
>
>Diedrich
>
>  
>