1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-05 13:16:09 +03:00

MDEV-32906: The SQL error plugin prints (null) as database if the mariadb

client is not using any database to execute the SQL.

Analysis:
When there is no database, the database string is NULL so (null) gets
printed.
Fix:
Print NULL instead of (null) because when there is no database SELECT
DATABASE() return NULL. SO NULL is more appropriate choice.
This commit is contained in:
Rucha Deodhar
2024-01-09 15:19:29 +05:30
parent 90cd712b84
commit ee7cc0a466
6 changed files with 104 additions and 34 deletions

View File

@@ -0,0 +1 @@
--plugin-load-add=$SQL_ERRLOG_SO --sql-error-log-with-db-and-thread-info=1 --lower_case_table_names=2