On 09/05/2025 10:12, Pepe Pérez wrote:
> Hi,
> I have a query that works fine in firebird 5.0.1 and earlier, but when i
> try to execute it in 5.0.2 i get the following error:
> /Conversion error from string "2025-04-10
> 19:#x10#x00#x08#x00#x00#x00#x00#x00#x98#xa6"./
> /
> /
> *is it a bug of 5.0.2?*
>
> This is the query:
> SELECT CAST(MAXVALUE(COALESCE((SELECT FIRST 1 FECHA FROM TABLE1
> ORDER BY FECHA DESC), '1899/12/30'),
> COALESCE((SELECT FIRST 1 FECHA FROM TABLE2
> ORDER BY FECHA DESC), '1899/12/30'))
> AS TIMESTAMP) AS FECHA FROM rdb$database
>
> *Any solution?*
What is the datatype of fecha? Have you tried using `timestamp
'1899/12/30'` instead of just `'1899/12/30'`?
But as Dimitry says, please provide a reproducible example
Mark
--
Mark Rotteveel