[Libreoffice-bugs] [Bug 118680] Access2Base error when updating VARCHAR_IGNORECASE columns

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Jul 18 15:02:24 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=118680

Jean-Pierre Ledure <jp at ledure.be> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
           Assignee|libreoffice-bugs at lists.free |jp at ledure.be
                   |desktop.org                 |

--- Comment #6 from Jean-Pierre Ledure <jp at ledure.be> ---
Access2Base checks the content of the Precision property
(https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1sdbcx_1_1Column.html#a20390f2d88c0849fd6cd9d115f502e3a)
of the com.sun.star.sdbcx.Column service to know the maximum allowed string
length and reports an overflow error if the maximum length is exceeded.

For VARCHAR fields the Precision property contains a non-zero value, typically
2^31), while it contains 0 for VARCHAR_IGNORECASE fields.

A patch has been pushed
(https://gerrit.libreoffice.org/gitweb?p=core.git;a=commit;h=7ea081d9f7938c59b1f71399bf32ce3fb738ad66)
on master to avoid a test on the field maximum length when the maximum length
is undefined (i.e. Precision = 0).

JPL

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180718/f50f36a3/attachment.html>


More information about the Libreoffice-bugs mailing list