Issue Details (XML | Word | Printable)

Key: MDL-20535
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: moodle.com
Reporter: Michael Hughes
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Oracle error in message popup

Created: 12/Oct/09 07:04 PM   Updated: 12/Oct/09 07:04 PM
Return to search
Component/s: Messages
Affects Version/s: 1.9.5
Fix Version/s: None

File Attachments: 1. File lib.php (40 kB)

Environment: Moodle 1.9.5+ on Linux running PHP 5.2.10, Apache 2, database is Oracle 10.1

Database: Oracle
Participants: Michael Hughes and moodle.com
Security Level: None
Difficulty: Easy
Affected Branches: MOODLE_19_STABLE


 Description  « Hide
The messaging box throws an Oracle error when trying to list contacts:

ORA-00911: invalid character

this is due to semi-colons ; added to SQL, oracle does not like these.

with bug reporting turned off the contact list is just shown as empty even if contacts have been added.

Fix: edit /message/lib.php and remove ; from SQL

Edit /message/lib.php:

line 52:
- ORDER BY u.firstname ASC;";
+ ORDER BY u.firstname ASC";

line 82:
- ORDER BY u.firstname ASC;";
+ ORDER BY u.firstname ASC";

Corrected lib.php is attached.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.