From issues-return-97446-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Fri Jul 26 21:30:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id A7E02180595 for ; Fri, 26 Jul 2019 23:30:01 +0200 (CEST) Received: (qmail 6951 invoked by uid 500); 26 Jul 2019 21:30:01 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 6939 invoked by uid 99); 26 Jul 2019 21:30:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jul 2019 21:30:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 66C49E2CB6 for ; Fri, 26 Jul 2019 21:30:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1B5A4265FC for ; Fri, 26 Jul 2019 21:30:00 +0000 (UTC) Date: Fri, 26 Jul 2019 21:30:00 +0000 (UTC) From: "Alexey Kosenchuk (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-12021) Inserting date from Node.JS to a cache which has Java.SQL.Timestamp MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IGNITE-12021?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 894141#comment-16894141 ]=20 Alexey Kosenchuk commented on IGNITE-12021: ------------------------------------------- [~g21wadhwa] could please provide a snippet of your nodejs code where you w= ork with Date/Timestamp. The current nodejs client does not allow to write Date as Timestamp. > Inserting date from Node.JS to a cache which has Java.SQL.Timestamp > ------------------------------------------------------------------- > > Key: IGNITE-12021 > URL: https://issues.apache.org/jira/browse/IGNITE-12021 > Project: Ignite > Issue Type: Bug > Components: cache, thin client > Affects Versions: 2.7 > Environment: We are in DEV right now. can't proceed to higher env= ironment with this show stopper > Reporter: Gaurav > Priority: Blocker > Labels: Node.JS, ignite, > > I have cache which has one field with type java.sql.Timestamp > =C2=A0 > From, Node.JS i am inserting it as new Date().=C2=A0 > If the cache is empty the inserts are successful. Issue come when java in= serted few records in this cache (Java inserts java.sql.Timestamp) . Now , = if I run Node.JS program which tries to insert it gives me this error. > =C2=A0 > Binary type has different field types=C2=A0[typeName=3DXYZCacheName, fiel= dName=3DupdateTime, fieldTypeName1=3DTimestamp, fieldTypeName2=3DDate] > =C2=A0 > Please help, its stopped my work totally! > =C2=A0 > P.S : JavaScript new Date() is itself a Timestamp, so cache should ideall= y accept it as Timestamp and not Date. -- This message was sent by Atlassian JIRA (v7.6.14#76016)