implement now() as a generic function

Issue #943 resolved
Mike Bayer repo owner created an issue

No description provided.

Comments (3)

  1. jek

    maybe these generics should live under a different namespace to minimize magic:

    gfunc.now() # emits something to get a 'now' value, possibly crazy, crazy sql
    func.now()  # emits now(), always
    

    the namespace could be called anything, gfunc or generic, or ...

  2. Mike Bayer reporter

    i think in the base func namespace we can put some conservative choices. I implemented now() in a0ffeb546468e14fa9d99b30571f7b8f9b32f421; the only change in behavior is that sqlite and oracle now produce "CURRENT_TIMESTAMP" whereas previously they'd just raise an error. other DB's should have the same behavior as before with now().

  3. Log in to comment