This pull request attempts to fix an issue where the query for the "Top Customers" widget on the Overview sometimes caused a database error, depending on the version of MySQL you have installed.
To resolve the issue for those using MySQL, I've adjusted the query to use the JSON_LENGTH function instead. However, since SQLite doesn't support this function, it'll continue to use the working JSON_ARRAY_LENGTH function.
This pull request attempts to fix an issue where the query for the "Top Customers" widget on the Overview sometimes caused a database error, depending on the version of MySQL you have installed.
To resolve the issue for those using MySQL, I've adjusted the query to use the
JSON_LENGTH
function instead. However, since SQLite doesn't support this function, it'll continue to use the workingJSON_ARRAY_LENGTH
function.Fixes #906.