[orm-devel] Update problem - string quoting

Diedrich Vorberg orm-devel@mailman.tux4web.de
Mon, 3 Mar 2003 11:28:05 +0100


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

-- 
           _..._                            Diedrich Vorberg
         .'     '.
        /  _   _  \                         http://www.tux4web.de
        | (o)_(o) |                         info@tux4web.de
         \(     ) /            .---.
         //'._.'\ \           /     \       Internet Dienstleistungen
        //   .   \ \          \.@-@./       und 'Consulting'.
       ||   .     \ \         /`\_/`\
       |\   :     / |        //  _  \\      Linux Rules!
       \ `) '   (`  /_      | \     )|_
     _)``".____,.'"` (_    /`\_`>  <_/ \
     )     )'--'(     (    \__/'---'\__/
      '---`      `---`