From cc12ae6c4fb1c6da297c1fcdfba8e7b9e9636c2b Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Wed, 24 Jul 2013 20:49:20 +0100 Subject: [PATCH] MDL-36399 LTI editing tool config breaks on Oracle. Note that this fix will fail if the tool URL is longer than 1333 characters. --- mod/lti/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/lti/locallib.php b/mod/lti/locallib.php index 81c40fdbc54..d54ab6627cf 100644 --- a/mod/lti/locallib.php +++ b/mod/lti/locallib.php @@ -505,7 +505,7 @@ function lti_get_type_config($typeid) { FROM {lti_types_config} WHERE typeid = :typeid1 UNION ALL - SELECT 'toolurl' AS name, baseurl AS value + SELECT 'toolurl' AS name, " . $DB->sql_compare_text('baseurl', 1333) . " AS value FROM {lti_types} WHERE id = :typeid2";