[Ur] dml DELETE and SELECT, way of referring to rows

Daniel Patterson dbpatterson at riseup.net
Tue Dec 29 16:08:43 EST 2009


Code that is written like:

        dml (DELETE FROM s
             WHERE Session = {[v.Session]} );

with table defined as:
table s : {LoggedIn : time, User : string, Session : string}
  PRIMARY KEY LoggedIn

and v being the a cookie value with attribute Session

Works, where as:

        dml (DELETE FROM s
             WHERE s.Session = {[v.Session]} );

Does not.

This is different from how the Sql example worked (where DELETE was used
with t.A), but the same as how the Tree example works.

I've posted the full chunk of code it comes out of at
http://paste.lisp.org/display/92786

What is the difference?



More information about the Ur mailing list