Insert too-small double produces wrong exception via Postgres
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Akiban SQL Parser |
Confirmed
|
Low
|
Unassigned |
Bug Description
Using the Postres server to insert a too-small value produces a parse
exception. There is no underflow exception defined, so it is not clear
what exception this should produce.
It is also unclear why this underflow should produce an exception rather
than resulting in truncation.
SQL:
CREATE TABLE t (double_field double)
INSERT INTO t VALUES (4.9E-325)
Result:
org.postgresq
at org.postgresql.
at org.postgresql.
at org.postgresql.
at org.postgresql.
at org.postgresql.
at org.postgresql.
at com.akiban.
To reproduce:
mvn test -Dtest=
Reproduced in trunk revision 1239
information type: | Private → Public |
See Bug #889297.