Firebird - numeric & decimal

Bunth Tamás btomi96 at gmail.com
Mon Oct 31 15:42:12 UTC 2016


Hi,

I tried to solve bug 74172
https://bugs.documentfoundation.org/show_bug.cgi?id=74172
but I got stuck:

In case of setting a numeric or decimal number the LO code calls
the prepared statement's setInt function, which has only an integer
value as parameter, but no scale. I assumed first that
setObjectWithInfo will be called as it is the only one with a "scale"
parameter, but instead setInt is called. So how can I get the scale?
Is there any documentation for that?
Or a code pointer in the LO code (which uses the sdbc driver,
where setInt is called) may be useful as well.

Another problem is that I cannot change the "Length" (precision) and
"Decimal places" (scale) field properties in Table Design mode. There
might be some unimplemented functions, but I couldn't find the
documentation for that.
To reproduce:
create table -> setting a new decimal field (you can only do that after
applying my changes) -> click on Decimal places Field property in the
bottom -> Try to type in some number. Won't work.

My changes:
https://gerrit.libreoffice.org/30447

Tamás Bunth


More information about the LibreOffice mailing list