Created attachment 162003 [details] Open the attached database. You could ignore macros. Open query "internal ..." I'm converting some example-database from HSQLDB to Firebird for showing the difference in code between this two internal databases. Open the attached database. Have a look at the tables - content is there. Go to queries and start the query internal_FB_consistency_check. You will get an error like shown in the second attached screenshot. Close the dialog with "OK", close the query without content. Have a look at the tables - no content is available any more. Same content in the dialog than before: Internal consistency check ... A code of a query should never be able to disconnect a (internal) database. This never happens with the internal HSQLDB. A warning like "I don't know what you mean with this code" is the standard here and all functionality is available. This bug appears with LO 6.4.4.2 on OpenSUSE 15.1 64bit rpm Linux.
Created attachment 162004 [details] Screenshot of the error, which destroys connection to internal Firebird
Have found the reason in the code. If I write this: SELECT "a"."Datum" FROM "Ansicht_Datum_lfdNr" AS "a" WHERE "a"."Datum" BETWEEN '2020-01-01' AND '2020-12-31' Firebird database will disconnect and if I get the same with SELECT "a"."Datum" FROM "Ansicht_Datum_lfdNr" AS "a" WHERE "a"."Datum" >= '2020-01-01' AND "a"."Datum" <= '2020-12-31' Firebird will work as expected. But Firebird should know what "BETWEEN" is. It is content of the docs of Firebird - and the alternative I wrote down is shown there also as the possibility to get the same result.
If I try this with Version : 6.4.4.2 Build ID : 3d775be2011f3886db32dfd395a6a6d1ca2630ff Threads CPU : 8; OS : Mac OS X 10.15.4; UI Render : par défaut; VCL: osx; Locale : fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR Calc: threaded I see the tables list slowly disappearing as I choose a table from the list after clearing the preceding error message, until LO finally crashes. Confirming.
Created attachment 167312 [details] bt with debug symbols On pc Debian x86-64 with master sources updated today, I reproduced the crash by launching LO and just launch SQL with: SELECT "a"."Datum" FROM "Ansicht_Datum_lfdNr" AS "a" WHERE "a"."Datum" BETWEEN '2020-01-01' AND '2020-12-31' Just for curiosity, do you reproduce an error or kind of crash by testing directly on Firebird if you create the same tables and view?
I gave a try with: SELECT "a"."Startdatum" FROM "Reservierung" AS "a" WHERE "a"."Startdatum" BETWEEN '2020-01-01' AND '2020-12-31' So the pb seems to be the use of "BETWEEN" on a view.
(In reply to Julien Nabet from comment #5) > I gave a try with: > SELECT "a"."Startdatum" FROM "Reservierung" AS "a" WHERE "a"."Startdatum" > BETWEEN '2020-01-01' AND '2020-12-31' > > So the pb seems to be the use of "BETWEEN" on a view. Sorry, forgot to say it worked with quoted query. (still by using Tools/SQL...)
I have tried it with the same database as external file. Same buggy behavior. Then I tried to import the data from the internal file to a Firebird ODBC connected database. It is impossible to get both databases open the same time in LO. So I couldn't copy the content. Then I copied the file to the server path of Firebird, but the user I have installed has no right to connect to the tables in the file. And another bug appeared: With LO 7.0.3.1 LO crashes immediately when I connect to Edit → Database → Properties So I gave up to test if the query will work in a server-database of Firebird.
(In reply to Robert Großkopf from comment #7) > ... > So I gave up to test if the query will work in a server-database of Firebird. I understand. I tried with LO Debian package 7.0.3 and master sources, each time sub entries of Edit/Database (Properties..., Connection Type..., Advanced Settings...) are disabled.
(In reply to Julien Nabet from comment #8) > (In reply to Robert Großkopf from comment #7) > > ... > > So I gave up to test if the query will work in a server-database of Firebird. > I understand. > I tried with LO Debian package 7.0.3 and master sources, each time sub > entries of Edit/Database (Properties..., Connection Type..., Advanced > Settings...) are disabled. Ok it's disabled because I use embedded Firebird in LO and you were testing with LO + external server Firebird.
I don't reproduce this with master sources updated today. First I thought it may be related to Firebird upgrade to 3.0.7 but then I tested again with LO Debian package 7.0.3, quite weirdly, I don't reproduce this. About Database properties, it's been fixed from next release 7.0.4, see tdf#138240 (or daily master or daily 7.1 branch)
Dear Robert Großkopf, 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
Couldn't reproduce the bug any more with LO 7.4.3.2 on OpenSUSE 15.3 I close this one as WORKSFORME.