Hi,

I've ran into the problem from the subject, which appears to be a bug, 
using the latest 1.4.192 release.

Given the table:

create table test (
  id bigint primary key,
  big_number bigint not null,
  small_number int not null
)

The following DELETE statement will fail with *Numeric value out of range 
error* (22003) if there are records in table:

delete from test
where big_number < ? - small_number * 1000

org.h2.jdbc.JdbcSQLException: Numeric value out of range: "1470033680022"; 
SQL statement:
delete from test where big_number < ? - small_number * 1000 [22003-192]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)

The same statement will not fail if there aren't any records in the table.

Minimal project to reproduce the error is available here:
https://github.com/vpavic-samples/h2-delete-error-22003

Thanks,
Vedran

-- 
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 https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to