Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D360D1048F for ; Wed, 5 Jun 2013 14:16:20 +0000 (UTC) Received: (qmail 4131 invoked by uid 500); 5 Jun 2013 14:16:20 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 4113 invoked by uid 500); 5 Jun 2013 14:16:20 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 4096 invoked by uid 99); 5 Jun 2013 14:16:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jun 2013 14:16:20 +0000 Date: Wed, 5 Jun 2013 14:16:20 +0000 (UTC) From: "Aleksey Yeschenko (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-5616) CQL now() on prepared statements is evaluated at prepare time and not query execution time MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-5616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13675952#comment-13675952 ] Aleksey Yeschenko commented on CASSANDRA-5616: ---------------------------------------------- Another option (that I'd prefer) is to reject now() in prepared statements altogether. > CQL now() on prepared statements is evaluated at prepare time and not query execution time > ------------------------------------------------------------------------------------------ > > Key: CASSANDRA-5616 > URL: https://issues.apache.org/jira/browse/CASSANDRA-5616 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 1.2.0 > Reporter: Max Penet > Labels: cql3 > > 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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira