danmarsden/moodle-plagiarism_turnitin — pull request #10 by jonof (2011-11-17 23:28:21+00:00)
Title: Removal of $DB->sql_compare_text calls

Since the TEXT-type fields became CHAR(255) a while ago, the use of sql_compare_text() became redundant, and on Oracle it actually breaks things because the default truncation length of that function is 32 chars (in the absence of a second parameter to override it), and a turnitin_files.identifier value is 40 characters.

Also, since I removed calls to sql_compare_text(), the affected get_record_sql() and get_field_sql() calls can be simplified to get_record() and get_field().