Created attachment 97903 [details] screenshots After editing and testing in the graphical mode I saved my Query. When I opend it Icould not run the query (syntax error). However I coul run is in SQL-mode. After a lot of searching I found that quotes dissapeard when saving. Since I have a space in the fieldname the graphical envirement needs those quotes. Both LibreOffice 3.5.4.2 Build ID 350m1(build2)(debian) and LibreoOffice 4.2.3.3 downloaded from the LibreOffice-site have the same problem. I append a screenshot from before saving (or switching to SQL-mode) and after Before: <["afschrijf periode (jaar)"]*12 After: <[afschrijf periode (jaar)]*12 I am running Debian 7 amd64 Thanks, Gerard Bekking
Created attachment 97919 [details] Database with query, quoted in SQL-view, square brackets in design-view I have tried to reproduce the bug. Have created a little database, a table with fieldnames including a space and a query with code, which is shown in square brackets in the design-view. I switched from design-view to SQL-view. in SQL-view it is shown with quotes. The query works as expected.
Created attachment 97926 [details] query_quote_date_field.odb Thanks for your swift reaction, I modified your database to include date-fields. Problem returned. After saving the design the query wil not function anymore in edit mode. It will function corectly in sql-mode After opening in edit-mode you can't save anymore due to a syntax-error. In SQL-mode there is no problem. On Thu, 24 Apr 2014 18:28:01 +0000 bugzilla-daemon@freedesktop.org wrote: > https://bugs.freedesktop.org/show_bug.cgi?id=77897 > > --- Comment #1 from robert@familiegrosskopf.de --- > Created attachment 97919 [details] > --> https://bugs.freedesktop.org/attachment.cgi?id=97919&action=edit > Database with query, quoted in SQL-view, square brackets in > design-view > > I have tried to reproduce the bug. Have created a little database, a > table with fieldnames including a space and a query with code, which > is shown in square brackets in the design-view. > I switched from design-view to SQL-view. in SQL-view it is shown with > quotes. The query works as expected. >
(In reply to comment #2) > I modified your database to include date-fields. > Problem returned. After saving the design the query wil not function > anymore in edit mode. It will function corectly in sql-mode > After opening in edit-mode you can't save anymore due to a syntax-error. > In SQL-mode there is no problem. It seems to be the subquery in Criterion which couldn't be interpreted by the GUI. I have tried to remove the quotes in the SQL-view. Works with square brackets instead. The difference between square brackets and quotes is not the problem for the GUI, as you could see in my example. The problem I see: The GUI doesn't recognize the code, but will accept it when the query will be executed without switching to direct SQL. We need more examples and should change the title of this bug - or create a new which show, when a query isn't executed in GUI-design-mode, but with switched off design.
I think the GUI recognized the code all right and it execute it properly, only when saved or when switched to SQL (and switched back) the code is changed in the GUI and can't be executed. While designing and testing everything works fine. The manual state that tekst with spaces should always be in quotes, that is why I found this. My workaround is replacing all spaces with underscore so quotes are avoided. On Fri, 25 Apr 2014 19:14:57 +0000 bugzilla-daemon@freedesktop.org wrote: > https://bugs.freedesktop.org/show_bug.cgi?id=77897 > > robert@familiegrosskopf.de changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| > |robert@familiegrosskopf.de > > --- Comment #3 from robert@familiegrosskopf.de --- > (In reply to comment #2) > > > I modified your database to include date-fields. > > Problem returned. After saving the design the query wil not function > > anymore in edit mode. It will function corectly in sql-mode > > After opening in edit-mode you can't save anymore due to a > > syntax-error. In SQL-mode there is no problem. > > It seems to be the subquery in Criterion which couldn't be > interpreted by the GUI. I have tried to remove the quotes in the > SQL-view. Works with square brackets instead. > > The difference between square brackets and quotes is not the problem > for the GUI, as you could see in my example. > > The problem I see: The GUI doesn't recognize the code, but will > accept it when the query will be executed without switching to direct > SQL. > > We need more examples and should change the title of this bug - or > create a new which show, when a query isn't executed in > GUI-design-mode, but with switched off design. >
Created attachment 98066 [details] Query works with a normal field, doesn't work with Datediff I have tested a little bit more. Have added another query to the database. Seems to be a special problem together with DATEDIFF() and fieldnames with special characters. Same problem with MONTH(date1) - MONTH(date2) There is a query, which works in GUI-mode and in SQL-mode with fields with special characters - also with date-fields. I don't know if there are other combinations, which doesn't work. Let us try it out.
You suggested a change of title to better represent the issue, which title would be the best in your opinion? On Sun, 27 Apr 2014 10:08:24 +0000 bugzilla-daemon@freedesktop.org wrote: > https://bugs.freedesktop.org/show_bug.cgi?id=77897 > > robert@familiegrosskopf.de changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > Attachment #97919 [details]|0 |1 > is obsolete| | > > --- Comment #5 from robert@familiegrosskopf.de --- > Created attachment 98066 [details] > --> https://bugs.freedesktop.org/attachment.cgi?id=98066&action=edit > Query works with a normal field, doesn't work with Datediff > > I have tested a little bit more. Have added another query to the > database. Seems to be a special problem together with DATEDIFF() and > fieldnames with special characters. Same problem with MONTH(date1) - > MONTH(date2) There is a query, which works in GUI-mode and in > SQL-mode with fields with special characters - also with date-fields. > I don't know if there are other combinations, which doesn't work. Let > us try it out. >
I have tried to change the title. When I add a date-function to the field (could be DATEDIFF, could also be DAY, MONTH ...) you couldn't add a fieldname with special characters to the criterion of the field in GUI-mode. Same criterion would work at fields without functions. It seems to be the same problem with text-function like UPPER and other functions. The quotes would be moved. There appear square-brackets for all fieldnames with special characters instead. But this will work with normal fields, not with a function in the field. Its the same behavior in all LO-versions, beginning with the first LO 3.3.*. So I set the version to "Inherited from OOo"
Adding self to CC if not already on
** Please read this message in its entirety before responding ** 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 on a currently supported version of LibreOffice (5.0.4 or later) https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System 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) http://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: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for your help! -- The LibreOffice QA Team This NEW Message was generated on: 2016-01-17
Bug still exists with LO 5.1.0.3, OpenSUSE 42.1 Leap, 64bit rpm Linux. Fieldnames with special characters are set in [square-brackets] instead of "quotes".
** Please read this message in its entirety before responding ** 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 on a currently supported version of LibreOffice (5.2.5 or 5.3.0 https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System 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) http://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: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug-20170306
Bug still exists with LO 5.3.1.1, OpenSUSE 42.1 Leap, 64bit rpm Linux.
** Please read this message in its entirety before responding ** 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 http://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://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Dear Gerard Bekking, 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://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Bug still exists with LO 6.4.2.1, OpenSUSE 15.1, 64bit rpm Linux.
Dear Gerard Bekking, 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
Have tested again. Downloaded https://bugs.documentfoundation.org/attachment.cgi?id=98066 Executed "query_fails_in_GUI" → works Opened query for editing in GUI. Executed query and get ------------------------------------------------------------------------------ SQL-Status: HY000 Fehlercode: 1000 Syntaxfehler im SQL-Ausdruck /home/buildslave/source/libo-core/dbaccess/source/core/api/SingleSelectQueryComposer.cxx:109 ------------------------------------------------------------------------------ Bug still exists in LO 7.3.1.3 on OpenSUSE 15.3 64bit rpm Linux