neumino / reqlite

Reqlite - RethinkDB in JavaScript
MIT License
338 stars 25 forks source link

r.now() is stateful #67

Closed simonratner closed 8 years ago

simonratner commented 8 years ago

Arithmetic operations on the return of r.now() affect all instances of r.now() in the query. For example, the following results in x == y:

r.expr({
  x: r.now(),
  y: r.now().add(1)
})