?
avatar andrepereiradasilva
andrepereiradasilva
20 Oct 2016

Because of some errors generated by the core when mysql 5.6.6+ (i think) is in it's default sql mode, joomla modifies the sql mode to none (see, for instance, https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/joomla/database/driver/mysqli.php#L187).

You can also see this was done for PDO Mysql driver here https://github.com/joomla/joomla-cms/pull/9485/files

See, for more info about the sql modes (ex: it's default values):

The problem with this no sql mode, is that it silently ignore some db consistency problems.

So, as talked when the problem was discovered, should 4.0 only allow mysql strict mode?
And if so, which parameters should joomla use for this sql mode?

anyway this of course will be a B/C break, since core and extensions which don't have the tables/queries in accordance to the sql mode will give errors.

avatar andrepereiradasilva andrepereiradasilva - open - 20 Oct 2016
avatar mbabker
mbabker - comment - 20 Oct 2016

? ?

avatar andrepereiradasilva andrepereiradasilva - edited - 20 Oct 2016
avatar andrepereiradasilva andrepereiradasilva - change - 20 Oct 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 20 Oct 2016
avatar andrepereiradasilva andrepereiradasilva - change - 20 Oct 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 20 Oct 2016
avatar andrepereiradasilva andrepereiradasilva - change - 20 Oct 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 20 Oct 2016
avatar andrepereiradasilva andrepereiradasilva - edited - 20 Oct 2016
avatar andrepereiradasilva andrepereiradasilva - change - 20 Oct 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 20 Oct 2016
avatar andrepereiradasilva andrepereiradasilva - change - 20 Oct 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 20 Oct 2016
avatar dgt41
dgt41 - comment - 20 Oct 2016

?

avatar andrepereiradasilva
andrepereiradasilva - comment - 20 Oct 2016

some example of core problems in strict mode #11771

avatar Hackwar
Hackwar - comment - 20 Oct 2016

? from me, too.

avatar wilsonge
wilsonge - comment - 20 Oct 2016

? from me. Go do a PR :)

avatar brianteeman brianteeman - close - 20 Oct 2016
avatar andrepereiradasilva
andrepereiradasilva - comment - 20 Oct 2016

close. See PR #12494

avatar andrepereiradasilva andrepereiradasilva - change - 20 Oct 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-10-20 13:32:39
Closed_By andrepereiradasilva
avatar andrepereiradasilva andrepereiradasilva - close - 20 Oct 2016
avatar brianteeman brianteeman - change - 20 Oct 2016
Labels Added: ?

Add a Comment

Login with GitHub to post a comment