Return-Path: X-Original-To: apmail-empire-db-commits-archive@www.apache.org Delivered-To: apmail-empire-db-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 EB846EF6E for ; Mon, 4 Feb 2013 14:06:16 +0000 (UTC) Received: (qmail 24492 invoked by uid 500); 4 Feb 2013 14:06:16 -0000 Delivered-To: apmail-empire-db-commits-archive@empire-db.apache.org Received: (qmail 24477 invoked by uid 500); 4 Feb 2013 14:06:16 -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 24462 invoked by uid 500); 4 Feb 2013 14:06:16 -0000 Delivered-To: apmail-incubator-empire-db-commits@incubator.apache.org Received: (qmail 24426 invoked by uid 99); 4 Feb 2013 14:06:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2013 14:06:16 +0000 Date: Mon, 4 Feb 2013 14:06:16 +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] [Closed] (EMPIREDB-40) Postgresql cast problem 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/EMPIREDB-40?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Rainer D=C3=B6bele closed EMPIREDB-40. --------------------------------- Cleanup of unclosed issues. =20 > Postgresql cast problem > ----------------------- > > Key: EMPIREDB-40 > URL: https://issues.apache.org/jira/browse/EMPIREDB-40 > Project: Empire-DB > Issue Type: Bug > Affects Versions: empire-db-2.0.5-incubating > Reporter: Rainer D=C3=B6bele > Assignee: Francis De Brabandere > Fix For: empire-db-2.0.5-incubating > > > Solution submitted by Frank Lupo: > public String getConvertPhrase(DataType destType, DataType srcType, O= bject format) > { > switch(destType) > { > -> case BOOL: return "CAST(? AS BOOL)"; > -> case INTEGER: return "CAST(? AS INTEGER)"; > case DECIMAL: return "CAST(? AS DECIMAL)"; > case DOUBLE: return "CAST(? AS DECIMAL)"; > case DATE: return "CAST(? AS DATE)"; > -> case DATETIME: return "CAST(? AS TIMESTAMP)"; -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira