Hi, Have you tried the last version ?
regards Dario. El 10/03/10 21:06, Mike Kienenberger escribió: > A comparison of number(14,2) to a literal integer is always false. > > Interestingly enough, a comparison of "number(14,2) + 0" to a literal > integer returns the expected result. > > This is using h2-1.2.128 from Jan 30th. > > jdbc:h2:tcp://localhost/~/test/cistestdatabasexyz > > Here's a simple example: > > > CREATE TABLE ledger(transaction_amount number(14,2)); > insert into ledger values (3); > insert into ledger values (12); > insert into ledger values (30); > select transaction_amount, transaction_amount > 12, > (transaction_amount + 0) >12 from ledger; > > TRANSACTION_AMOUNT FALSE (TRANSACTION_AMOUNT + 0) > 12.00 > 3.00 FALSE FALSE > 12.00 FALSE FALSE > 30.00 FALSE TRUE > (3 rows, 0 ms) -- 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.
