Hi Bhavbhuti,

I do not know the exact solution, but I'd say:

> COALESCE(CAST(tPB.dBillDt AS TIMESTAMP), '') AS tDocDt

converts timestamp inside servers environment to a string - the
returning client receives a string and does not know about it's datatype
- yet does not a apply specific translations.

With

> CAST(COALESCE(tPB.dBillDt, '') AS TIMESTAMP) AS tDocDt

it's just the other way round: While the server deals with string and
timestamp, the client receives a timestamp an does know what to with it.

I'd say, this behavior is expectable...

Best regards, Thomas

Am 10.05.2014 15:21, schrieb venussof...@gmail.com [firebird-support]:
>  
> 
> Hi all
> 
> I have the following in my SELECT statement
> 
> COALESCE(CAST(tPB.dBillDt AS TIMESTAMP), '') AS tDocDt
> 
> The COALESCE() converts the CAST()ed TIMESTAMP to ANSI standard
> 2014-05-03 00:00:00.0000
> 
> 
> 
> CAST(COALESCE(tPB.dBillDt, '') AS TIMESTAMP) AS tDocDt
> 
> The CAST() converts the COALESCE()ed TIMESTAMP to my regional and
> expected format 03.05.2014, 00:00:00.0000
> 
> 
> Is this an expected behavior?  Please advise.
> 
> Thanks and regards
> Bhavbhuti

-- 
Mit freundlichen Grüßen,

Thomas Beckmann
Diplom-Informatiker


Wielandstraße 14c • 23558 Lübeck
Tel +49 (22 25) 91 34 - 545 • Fax +49 (22 25) 91 34 - 604
Mail thomas.beckm...@assfinet.de <mailto:thomas.beckm...@assfinet.de>

ASSFINET-Logo

*ASSFINET Dienstleistungs-GmbH*
Max-Planck-Straße 14 • 53501 Grafschaft bei Bonn
i...@assfinet.de <mailto:i...@assfinet.de> • www.assfinet.de
<http://www.assfinet.de/>

Geschäftsführer: Dipl. Wirtschaftsinformatiker Marc Rindermann
Registergericht Koblenz HRB 23331

Diese E-Mail enthält vertrauliche Informationen. Wenn Sie nicht der
richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist
nicht gestattet.

  • ... venussof...@gmail.com [firebird-support]
    • ... venussof...@gmail.com [firebird-support]
    • ... Thomas Beckmann thomas.beckm...@assfinet.de [firebird-support]
      • ... Venus Software Operations venussof...@gmail.com [firebird-support]
        • ... Svein Erling Tysvær svein.erling.tysv...@kreftregisteret.no [firebird-support]
          • ... Venus Software Operations venussof...@gmail.com [firebird-support]
            • ... Svein Erling Tysvær svein.erling.tysv...@kreftregisteret.no [firebird-support]
              • ... Venus Software Operations venussof...@gmail.com [firebird-support]
              • ... W O sistemas2000profesio...@gmail.com [firebird-support]

Reply via email to