Syntax Error when running local_o365\task\usersync #2184
Labels
Feature - user sync
Issue type - bug
Bugs in existing code that needs to be fixed.
Plugin - local_o365
Status - PR ready / pending release
Dev is done and PR ready. Will be included in the next release.
Milestone
Hi @weilai-irl
When running the usersync script a client receives the following syntax-error:
Context:
database: postgres
moodle-version: 4.0.4
local_o365 version: 2022041905 (current master branch, 4.0.1 release)
According to the syntax of the "JOIN" clause the "ON" condition seems to be optional in MySQL but expected in other database-types:
here a reference discussion on stackoverflow:
https://stackoverflow.com/questions/16470942/how-to-use-mysql-join-without-on-condition
the problematic sql-query seems to be at the end of this php-file:
https://github.com/microsoft/o365-moodle/blob/MOODLE_40_STABLE/local/o365/lib.php
Has there already been a patch in the meanwhile?
Thanks a lot!
With best regards!
peta3000
related issue(s):
#2173
The text was updated successfully, but these errors were encountered: