Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 46F4B200BB2 for ; Sat, 29 Oct 2016 13:09:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 459A7160AF4; Sat, 29 Oct 2016 11:09:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B3908160AF1 for ; Sat, 29 Oct 2016 13:08:59 +0200 (CEST) Received: (qmail 26757 invoked by uid 500); 29 Oct 2016 11:08:58 -0000 Mailing-List: contact commits-help@empire-db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: empire-db-dev@empire-db.apache.org Delivered-To: mailing list commits@empire-db.apache.org Received: (qmail 26746 invoked by uid 500); 29 Oct 2016 11:08:58 -0000 Delivered-To: apmail-incubator-empire-db-commits@incubator.apache.org Received: (qmail 26743 invoked by uid 99); 29 Oct 2016 11:08:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Oct 2016 11:08:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6A31B2C0086 for ; Sat, 29 Oct 2016 11:08:58 +0000 (UTC) Date: Sat, 29 Oct 2016 11:08:58 +0000 (UTC) From: =?utf-8?Q?Rainer_D=C3=B6bele_=28JIRA=29?= To: empire-db-commits@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (EMPIREDB-248) date functions not properly handled in PostgreSQL MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 29 Oct 2016 11:09:00 -0000 Rainer D=C3=B6bele created EMPIREDB-248: -------------------------------------- Summary: date functions not properly handled in PostgreSQL Key: EMPIREDB-248 URL: https://issues.apache.org/jira/browse/EMPIREDB-248 Project: Empire-DB Issue Type: Bug Components: Core Reporter: Rainer D=C3=B6bele Assignee: Rainer D=C3=B6bele Fix For: empire-db-2.4.5 Alberto Osvaldo Gonzalez reported: Hi, this is Alberto from Argentina. I=E2=80=99m using empire-db and found a= n issue using postgresqldriver.=20 The problem appears when using the =E2=80=9Cyear=E2=80=9D function to extra= ct the year from a date.=20 This is the original source code: (line 347) case SQL_FUNC_DAY: return "day(?)"; case SQL_FUNC_MONTH: return "month(?)"; case SQL_FUNC_YEAR: return "year(?)"; And this is what i modified: (line 347) case SQL_FUNC_DAY: return "extract(day from ?)"; case SQL_FUNC_MONTH: return "extract(month from ?)"; case SQL_FUNC_YEAR: return "extract(year from ?)"; -- This message was sent by Atlassian JIRA (v6.3.4#6332)