Details
Description
When restoring a course, pre-existing scales are searched in target site to be reused. That consists in a CLOB comparison in SQL.
But that fails under MSSQL and Oracle that need a special syntax to compare clobs.
Change SQL to use the helper sql_compare_text() function.