Jump to content

Manual talk:$wgSQLMode

Add topic
From mediawiki.org
Latest comment: 3 months ago by Phispi in topic Default value of $wgSQLMode

Default value of $wgSQLMode

[edit]

The info box states that the default value is an empty string. Further down in the text it's claimed that the default value is null. This is not the same as an empty string leads to a very permissive (and in my humble opinion not ideal) "empty" SQL mode, while "null" would use the system admins setting which is claimed to be the case ("... and assume the database admin (DBA) has done their best job."). As of MediaWiki 1.43, the empty string seems to be the default.

To summarize:

  • The description claiming null is the default is wrong.
  • The default value (empty string) is problematic.

Phispi (talk) 22:38, 11 November 2025 (UTC)Reply