uid is a reserved word in oracle. search the code base for "uid" and remove any references to it in SQL queries.
Have commented changes for this.
Changing just that one line in mod/quiz/overrides.php will surely break things. You need to find the other places that refer to that field in the data returned, and fix them.
I actually couldnt find anywhere that was referencing the 'uid' column. At line 137 and 140 there is already a reference to a 'userid' column. Actually, that userid value could well be coming out of the quiz_override table. Can the uid column on line 101 just be removed?
Looks like it can be removed. Good.
Looks ok, as far as neither $rating->id and $rating->uid are used later. +1 for after 2.0.2