-
Notifications
You must be signed in to change notification settings - Fork 73
queries with "group by" don't work on NAS #146
Conversation
I've changed left join to count "anzahl" to a subquery and that works. Otherwise on a QNAP nas only the books list works, all the others do not.
Any specifics why this is necessary? Does QNAP NAS don't have SQLite 3? |
Hi Rainer, [cid:image001.png@01D04EC5.0F7ABC10] This is what phpinfo shows. I'm a windows system administrator and SQL server dba, my linux knowledge is better than beginner but I'm not a linux expert. The "group by" statement doesn't work. In other SQl languages, the group by should contain all fields in the selection list, but that didn't work either. Other bug: It seems the "LOGIN_REQUIRED" variable is not retrieved from the database. I've checked, after saving … If I refresh the admin page, I see the login required is "no" while there is a 1 at "must_login" in the database. If I change the kindle setting, this is written but does work okay. Best regards, Roy van Manen Van: Rainer Volz [mailto:notifications@github.com] Any specifics why this is necessary? Does QNAP NAS don't have SQLite 3? — |
The pictures in your post didn't make it. Could you please just check the sqlite version on your QNAP?
left join should be part of sqlite3. If this is an older version of SQLite then you might run into other problems too, sooner or later. |
Hi, I have the same problem (as in the screenshots above) on a Qnap TS 470 pro, with current Firmware QTS 4.1.3 (and also newest QTS 4.1.4 beta version, 2015/05/22). BicBucStriim installation check said it is all ok, except no PHP module intl. |
Same issue here on TS-1079P 4.1.3 |
I verified that the sqlite problem doesn't appear in version 3.8.2, on my test system. Does QTS 4.2 contain 3.8.2+? |
I heard there is now the QNAP 4.2 firmware. Did they finally update the buggy sqlite3 version, or is the problem still there? |
Hey Mr Volz, I just tried the newest version of BBS v. 1.3.1 with newest QNAP QTS 4.2.0 (still beta): Just wondering, as the workaround above for QNAP firmware does not seem to work? |
Hm, I changed the joins into subselects, as proposed by @royvanmanen. I wasn't convinced that this is the real problem, because the screenshots show the numbers, which were produced by the joins. However, I noticed that I didn't remove the GROUP BY statements in these queries. They didn't do anything, but who knows. Could someone please try the Github version? See, if it changes anything for you? BTW: you only have to download |
That's it, this does the trick, many thanks! |
Thx for testing. I'll change the rest of the queries and publish 1.3.2. |
v1.3.2 with the fixes is published |
v1.3.2 funktioniert nun auf QNAP, vielen Dank! Rückmeldung: Dafür ist nun der Config-Button oben rechts plötzlich verschwunden?: Er war bis und mit Erstinstallation (Konfigurationsseite) von v1.3.2 noch sichtbar, nun ist er weg. Die Buttons Suchen und Abmelden sind ok. Freundliche Grüsse
|
Das ist ein Übergangsproblem mit alten Sessions. Da ich die dafür zuständige Bibliothek austauschen musste, haben sich die Sessionstrukturen geändert. Das alte admin-flag wird somit nicht erkannt. Sobald die aktuelle Sesson abläuft und der Browser eine neue anlegt, ist alles wieder normal. Wer es eiliger hat, löscht das Session-Cookie im Browser oder die Session-Dateien auf dem NAS. |
I've changed left join to count "anzahl" to a subquery and that works. Otherwise on a QNAP nas only the books list works, all the others do not.