Description: When inserting an integer greater than the allowed range in a table, an overflow occurs and the number is modified without displaying any message to the user. That is, if in a SMALLINT we try to enter a positive number greater than 32767, for example 33000, it becomes -32536 and does not warn the user. However, if you try to do the insertion directly, for example with the statement INSERT INTO "NUMS" (NUM) VALUES (33000), the database engine raises an exception and shows a message to the user Steps to Reproduce: 1. Create a table with a SMALLINT field or use the attached table 2. Open the table to enter data 3. Enter in the SMALLINT field a value out of range, e.g. 33000. 4. When you save the changes, the number becomes a different one, in case of entering 33000 it becomes -32536. To check that it is a problem of how Base handles the data, and not of the underlying engine: 5. In the main menu select Tools > SQL 6. Execute the INSERT INTO "NUMS" (NUM) VALUES (33000) statement, or a similar one adjusted to your field and table names. 7. You will receive a message that the data cannot be inserted. Actual Results: -32536 (a different number from the one inserted) Expected Results: A message warning about the invalidity of the data. Reproducible: Always User Profile Reset: No Additional Info: Tested wit Firebird embedded, HSQLDB embedded, Firebird external file, and MariaDB server Version: 7.3.0.3 (x64) / LibreOffice Community Build ID: 0f246aa12d0eee4a0f7adcefbf7c878fc2238db3 CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win Locale: es-ES (es_ES); UI: en-US Calc: CL
Created attachment 178262 [details] Test database Firebird embedded
Confirmed it with: Postgres 13 and Version: 7.3.0.3 / LibreOffice Community Build ID: 30(Build:3) CPU threads: 8; OS: Linux 5.16; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US 7.3.0-4 Calc: threaded
The problem also occurs with the NUMERIC and DECIMAL data types, although for these it is more difficult to check the overflow because the SQL implementation guarantees at least the selected size, but may not limit the maximum size
Could confirm with internal Firebird, PostgreSQL direct connection, internal HSQLDB … All tested with LO 7.3.1.1 on OpenSUSE 15.3 64bit rpm Linux.
Same behavior in LO 6.4.7.2. Could be it is an old bug.
Same behaviour LO 7.3.0.3 in windows
Dear jcsanz, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
The bug is still present Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: fabdac1af8d30f849a94defd516d6699945f908d CPU threads: 16; OS: Windows 11 X86_64 (build 22631); UI render: Skia/Vulkan; VCL: win Locale: es-ES (es_ES); UI: es-ES Calc: CL threaded