empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Döbele (JIRA) <empire-db-...@incubator.apache.org>
Subject [jira] Created: (EMPIREDB-40) Postgresql cast problem
Date Thu, 02 Jul 2009 18:51:47 GMT
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
             Fix For: empire-db-2.0.5-incubating


    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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message