-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Music collection update fails due to SQL error #154
Comments
Sigh. MariaDB is an absolute arse to work with. I'm also running that same version, on Rasberry Pi OS, and old_style_sql needs to be 0 for me - which makes it use the format of SQL that is causing you that issue. There is no consistency in versioning so there's no way I can make it work on every system. |
I mean for me, using the old_style_sql=1 works, so no need to fix something for me (until this is deprecated). From your documentation I already realized that you are not happy about mysql/mariadb. I would have switched already but I am not sure what I would loose upon using a clean sqlite database. Others face the same issue and use the following code to enable the alias in insert duplicates: |
You can switch to SQLite without losing anything. First you need to create a metadta backup, using the plugin from the drop down menu above the info panel. Then switch to SQLite, rebuild your music colection, then restore the metadata backup. |
Yes it happens here.
I switched to Sqlite, and this is fixed. At least this should be documented, if not fixed. |
The music collection update fails for me for some undefined time. It never completes successfully and leaves a lock.
Clearing the lock does not improve the situation on the next scan. The log file indicates that it is due to some SQL command.
Setup
I use MariaDB
Ver 15.1 Distrib 10.11.4
from Debian 12 and do not see any option related to the problem on the Rompr installation page.Investigation and Workaround
After investigating, I think it is either some sql command that mariadb does not understand or about some escaping: The error message below from the debug logis about the SQL insert syntax which indeed does not seem available in mariadb (https://mariadb.com/kb/en/insert/ vs. https://dev.mysql.com/doc/refman/8.0/en/insert.html). But on the other side, it only seems to happen for some files which have.
Setting
old_style_sql";b:1;
in prefs.var seems to resolve the problem.Log Output without Workaround
Before I found this workaround, I extended the logging to have the failing entry printed as well. Here is the relevant output:
After removing the parentheses from the file name, I get another similar error for another file:
The text was updated successfully, but these errors were encountered: