Skip to content

Corrections for MySQL and PostgreSQL for Joomla CMS PR #25760#31

Merged
Hackwar merged 3 commits intoHackwar:j4mysql8contentfrom
richard67:patch-1
Aug 1, 2019
Merged

Corrections for MySQL and PostgreSQL for Joomla CMS PR #25760#31
Hackwar merged 3 commits intoHackwar:j4mysql8contentfrom
richard67:patch-1

Conversation

@richard67
Copy link
Copy Markdown

@richard67 richard67 commented Aug 1, 2019

See my first comment in your PR joomla#25760.
I've tested with MySQL 5.7 that it really needs that to make the db checker not run into an SQL error when checking.
Maybe all would be easier if we just would make a PR to remove the db checker/fixer.

What remains to be done: There is no ISNULL() function in PostgreSQL. This function is a MySQL special. Therefore either use standard "IS NULL" statement which works in both and like I had it in this PR with the 2nd commit which I reverted then, or get a query object and use $query->isNullDatetime(...), which would also help with old data after broken updates where the UPDATE statement in the schema update were not executed by the DB fixer when trying to fix that .

@richard67 richard67 changed the title One alter table for each column for db fixer on MySQL Corrections for MySQL and PostgreSQL for Joomla CMS PR #25760 Aug 1, 2019
@Hackwar Hackwar merged commit 8d564e0 into Hackwar:j4mysql8content Aug 1, 2019
@richard67 richard67 deleted the patch-1 branch August 1, 2019 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants