2013/8/23 Noel Grandin <[email protected]>

>
> I have no idea. I suspect we're following some arcane rules in the SQL
> standard.
>
> Rather use the date arithmetic functions, they are much better defined:
> http://h2database.com/html/**functions.html#dateadd<http://h2database.com/html/functions.html#dateadd>


Does not make a difference (besides making the query bigger):
    SELECT CURRENT_DATE, CURRENT_DATE - 1, DATEADD('DAY', -1, CURRENT_DATE)
gives:
    2013-08-31,
2013-08-30 00:00:00.0,
2013-08-30 00:00:00.0



> On 2013-08-22 22:34, Cecil Westerhof wrote:
>
>> When I execute:
>>     SELECT CURRENT_DATE, CURRENT_DATE - 1
>> I get:
>>     2013-08-22, 2013-08-21 00:00:00.0
>> Would it not be more logical to get:
>>     2013-08-22, 2013-08-21
>>
>> --
>> Cecil Westerhof
>>
>
>


-- 
Cecil Westerhof

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to