question about finding the size of a DB column
Mike Kaganski
mikekaganski at hotmail.com
Sat Feb 5 16:53:09 UTC 2022
Hi Dhiraj!
On 05.02.2022 17:04, Dhiraj Holden wrote:
> I have started looking at this bug
> <https://bugs.documentfoundation.org/show_bug.cgi?id=138691> about Base
> crashing with Firebird when using a form to insert an image that does
> not fit in a binary field. The proposed fix was to check in xref/core/
> forms/source/component/ImageControl.cxx whether the image was bigger
> than the database column. In order to do this, I need to find the size
> of the image and the column. How should I proceed?
Maybe this form control should get an optional max size property, which
could be set according to the underlying field size; then the code could
check that in OImageControlModel::setFastPropertyValue_NoBroadcast (for
PROPERTY_ID_IMAGE_URL and PROPERTY_ID_GRAPHIC).
--
Best regards,
Mike Kaganski
More information about the LibreOffice
mailing list