ndunand/moodle-tool_mergeusers — pull request #65 by danmarsden (2014-09-10 01:16:03+00:00)
Title: Adjust SQL to work correctly with PostGres.

TABLE_SCHEMA == 'public' in Postgres so comparing it to $CFG->dbname causes no fields to be returned.