Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-5616

CQL now() on prepared statements is evaluated at prepare time and not query execution time

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 1.2.6
    • Component/s: Legacy/CQL
    • Labels:
    • Severity:
      Normal

      Description

      insert into some_table (id,time) values (?,now())

      On the example above now() will always have the same value, it should probably be evaluated at "query" time and not at prepare time.

        Attachments

        1. 5616.txt
          3 kB
          Sylvain Lebresne

          Activity

            People

            • Assignee:
              slebresne Sylvain Lebresne
              Reporter:
              mpenet Max Penet
              Authors:
              Sylvain Lebresne
              Reviewers:
              Aleksey Yeschenko
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: