Skip to content

Fix SQL wrong aggregate function usage#28

Merged
HLeithner merged 2 commits intoHLeithner:prepared-plg-content-contactfrom
richard67:4.0-dev-prepared-plg-content-contact-fix-sql
Oct 20, 2019
Merged

Fix SQL wrong aggregate function usage#28
HLeithner merged 2 commits intoHLeithner:prepared-plg-content-contactfrom
richard67:4.0-dev-prepared-plg-content-contact-fix-sql

Conversation

@richard67
Copy link
Copy Markdown

@richard67 richard67 commented Oct 20, 2019

Pull Request for joomla#25052 .

Summary of Changes

See comments in the CMS PR:

joomla#25052 (comment)

joomla#25052 (comment)

joomla#25052 (comment)

Testing Instructions

Check on MySQL 8 or a lower supported version where sql_mode=only_full_group_by is set like it is in 8 by default, or on a PostgreSQL database that there is no error reported regarding aggregated query without GROUP BY.

Expected result

No invalid SQL according to common standards.

Actual result

Invalid SQL according to common standards.

Documentation Changes Required

None.

@richard67
Copy link
Copy Markdown
Author

I've just tested on MySQL 5.7 and PostgreSQL 10.something and it works.

@HLeithner HLeithner merged commit c4e0cad into HLeithner:prepared-plg-content-contact Oct 20, 2019
@HLeithner
Copy link
Copy Markdown
Owner

Thx

@richard67 richard67 deleted the 4.0-dev-prepared-plg-content-contact-fix-sql branch October 20, 2019 12:13
@richard67 richard67 restored the 4.0-dev-prepared-plg-content-contact-fix-sql branch October 20, 2019 12:23
HLeithner pushed a commit that referenced this pull request Apr 2, 2023
* Convert user plugins to service provider

* form path

* Update plugins/user/contactcreator/services/provider.php

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>

* Update plugins/user/joomla/services/provider.php

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>

* Update plugins/user/profile/services/provider.php

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>

* Update plugins/user/terms/services/provider.php

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>

* Update plugins/user/token/services/provider.php

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>

* Update plugins/user/joomla/src/Extension/Joomla.php

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>

* Update plugins/user/joomla/src/Extension/Joomla.php

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>

* revert debug

* private

* Fix account notification email language (#28)

* Update plugins/user/joomla/src/Extension/Joomla.php

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>

* minor change

---------

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>
Co-authored-by: Tuan Pham Ngoc <github@joomdonation.com>
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