COUNT not working on XAMPP
I have just installed XAMPP version 7.0.2 which incorporates MariaDB. I have added a table called repairs to the test database and it works fine with various PHP pages I have written. However, when trying to use a simple query like:
SELECT COUNT (*) FROM repairs
I get the following error message:
#1630 - FUNCTION test.COUNT does not exist. Check the 'Function Name Parsing and Resolution' section in the Reference Manual
This happens in both phpMyadmin and in PHP pages which are accessing the database.
Answer
See the manual about sql_mode variable, in particular about IGNORE_SPACE
value.
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.