-
Notifications
You must be signed in to change notification settings - Fork 263
Open
Description
Basic Information
(Split off from #8961)
If the database name contains a ., the installer will report an SQL syntax error.
Steps to reproduce
- Run the 3.0 installer
- Enter a database name with a
.in it (such astestforum_smf_3.0_a2025) - Get to step 4: Forum Settings, and click Continue
Expected result
The database gets populated.
Actual result
The installer fails with You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '.`0_a2025`' at line 2
Version/Git revision
3.0 Alpha 4, 9d4dfaf
Database Engine
MySQL
Database Version
10.11.13-MariaDB-0ubuntu0.24.04.1
PHP Version
8.1.33
Logs
PHP Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '.`0_a2025`' at line 2 in .../SMF3/Sources/Db/APIs/MySQL.php:219
Stack trace:
#0 .../SMF3/Sources/Db/APIs/MySQL.php(219): mysqli_query(Object(mysqli), 'SHOW TABLES\n\t\t\t...', 0)
#1 .../SMF3/Sources/Db/APIs/MySQL.php(1227): SMF\Db\APIs\MySQL->query('SHOW TABLES\n\t\t\t...', Array)
#2 .../SMF3/Sources/Maintenance/Tools/Install.php(688): SMF\Db\APIs\MySQL->list_tables()
#3 .../SMF3/Sources/Maintenance/Maintenance.php(294): SMF\Maintenance\Tools\Install->databasePopulation()
#4 .../SMF3/install.php(31): SMF\Maintenance\Maintenance->execute(1)
#5 {main}
thrown in .../SMF3/Sources/Db/APIs/MySQL.php on line 219Additional Information
No response