Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.8.2
-
Component/s: Glossary
-
Labels:None
-
Environment:Red Hat Enterprise Linux ES release 4 (Nahant Update 5)
PHP Version 5.2.3
Oracle Database 10g Release 10.2.0.1.0
-
Database:Oracle
-
URL:sorry, intranet :)
-
Affected Branches:MOODLE_18_STABLE
-
Fixed Branches:MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE
Description
While trying to use the auto-linking functionality with the glossary, I got nothing.....
When looking into code, I found a bug ; it seems to be relative to Oracle
The clause: != \'\' appears to not working under my Oracle....???
And obviously is not null does (but does not test the same).
Another problem shows up after it, when having aliases without entries or categories, the array_merge with a null array fails !
I've modified this in the joined file. Here's the diff lines:
73,74c73,74
< AND ge.concept != \'\' ');
<
—
> AND ge.concept is not null '); //Joseph Boiteau: previous sql isn't working with Oracle
> // and moreover, the string could'nt be emptyl using interface
85c85,86
< if ($aliases) {
—
> // Joseph Boiteau: adding controls to not use a null $concepts object
> if ($aliases and $concepts) {
87a89,91
> elseif ($aliases) {
> $concepts = $aliases;
> }
Should I commit that somewhere ?
Is it a bad sql or an Oracle abnormal comportment ?
It's working here but I don't know what to do with that !
Attachments
Issue Links
| This issue has a clone: | ||||
| MDL-9593 | ORA error: Errors when restoring a zipped course |
|
|
|
| MDL-12084 | Quiz overal feedback is not displayed on Oracle, because it cannot compare a TEXT text column with '' |
|
|
|
| This issue has a non-specific relationship to: | ||||
| MDL-12084 | Quiz overal feedback is not displayed on Oracle, because it cannot compare a TEXT text column with '' |
|
|
|
Hi Eloy, you're apparently the Oracle god down there
I found more: it's because Oracle does not allow empty string (empty string is null for Oracle).
I didn't find a moodle track of that exact problem..?
I've seen
MDL-7634: speaking about a specific replacement of empty string by a space !?I also found traces of a 'oracle_dirty_hack' function ; apparently obsolete.
Is there a known moodle way to handle it ?
I can probably remove the clause I mentioned
replacing
> != ''
with
> is not null
doesn't really match ; but the clause itself isn't really useful (I mean we cannot submit nothing in the input textbox).
MDL-7634: speaking about a specific replacement of empty string by a space !? I also found traces of a 'oracle_dirty_hack' function ; apparently obsolete. Is there a known moodle way to handle it ? I can probably remove the clause I mentioned replacing > != '' with > is not null doesn't really match ; but the clause itself isn't really useful (I mean we cannot submit nothing in the input textbox).