You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by "Rainer Döbele (JIRA)" <em...@incubator.apache.org> on 2013/02/04 15:06:16 UTC
[jira] [Closed] (EMPIREDB-40) Postgresql cast problem
[ https://issues.apache.org/jira/browse/EMPIREDB-40?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rainer Döbele closed EMPIREDB-40.
---------------------------------
Cleanup of unclosed issues.
> 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öbele
> Assignee: Francis De Brabandere
> Fix For: empire-db-2.0.5-incubating
>
>
> Solution submitted by Frank Lupo:
> public String getConvertPhrase(DataType destType, DataType srcType, Object 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 administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira