Hi,

> CURRENT_DATE+1           // works (adds one day)
> ?+1                                      // where ? is set as a date
> does not work
>
> Which seems to me to be inconsistent.

In the first case, the database knows the data type when parsing, in
the second case it can't possibly know, so it picks decimal.

I suggest to use CAST(? AS DATE) + 1 or something similar (for
example, use DATEADD).

Regards,
Thomas

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to