tjhunt [Tue, 22 Aug 2006 13:53:39 +0000 (13:53 +0000)]
Reverting toyomoyo's conversion of mod/quiz/view.php to roles because his changes made no sense.
Admittedly, this file is pretty incomprehensible and it is not clear at first what it is trying to do. (Even though it is more comprehensible now than it was a week ago.) I'll to a proper conversion of this file to RnP once I have checked in my other changes there - assuming I can actually get Moodle to work so I can test my changes.
stronk7 [Mon, 21 Aug 2006 12:28:46 +0000 (12:28 +0000)]
Reducing the list of MSSQL reserved words to the efectively
reserved words (the previous list included a lot of words
reserved by SQLXX standars but not by MSSQL)
stronk7 [Mon, 21 Aug 2006 12:04:48 +0000 (12:04 +0000)]
Reducing the list of PG reserved words to the efectively
reserved words (the previous list included a lot of words
reserved by SQLXX standars but not by PG)
vyshane [Mon, 21 Aug 2006 06:56:04 +0000 (06:56 +0000)]
Removed $forum->open, $forum->assesspublic from code. Fixed bug in upgrade
code, changed module config form to accomdate removal of forum.assesspublic
and forum.open.
skodak [Mon, 21 Aug 2006 06:54:00 +0000 (06:54 +0000)]
import of ADODB v4.91 and general cleanup, removed some unused files - see readme_moodle.txt; new session2 code needs a new table, I am going to use the new database functions for that later, for now we are using the old table and old database session code.
toyomoyo [Mon, 21 Aug 2006 05:19:16 +0000 (05:19 +0000)]
fix for bug #6307, reserved word 'level' changed to 'aggregatelevel' for Oracle. Some parts could be broken by this. please report breakage asap! Thanks
vinkmar [Mon, 21 Aug 2006 04:06:58 +0000 (04:06 +0000)]
fixed tabs, fixed potential notices for undefined variables, added structure that will be used for detecting what variables to flag during installs & upgrades, removed all $_GET usage, switched 'admin' to $CFG->admin (for directory paths), and fixed blank line at end of index.php
stronk7 [Sun, 20 Aug 2006 18:19:50 +0000 (18:19 +0000)]
Since PostgreSQL 7.4 the precision given for float columsn is
the number of bits to use, and not the number of decimals. So,
based on the number of decimals from the XMLDB schema, we are
going to create REAL (<6 decimals) or DOUBLE PRECISION (>=6) columns.
stronk7 [Sun, 20 Aug 2006 09:37:56 +0000 (09:37 +0000)]
First commit for the progressive adoption of ADODB's SelectLimit() function
in order to support LIMIT clauses in a cross-db compatible way.
Changes don't affect old sentences at all (all them would be changed soon too).
vinkmar [Sat, 19 Aug 2006 01:38:57 +0000 (01:38 +0000)]
Fixed error that caused self_test failure during initial install; made changes for PHP4 compatibility (no use of instanceof, no use of private/protected/public)
stronk7 [Fri, 18 Aug 2006 22:56:08 +0000 (22:56 +0000)]
Splitting datalib.php in three libraries:
- ddllib.php: Where all the DDL (install/upgrade) functions will be.
- dmllib.php: Where all the DML (select...) functions will be.
- datalib.php: Legacy lib. Its contents should go to other libraries soon.
For more info see: http://docs.moodle.org/en/XMLDB_Roadmap (point 1)
tjhunt [Fri, 18 Aug 2006 22:34:54 +0000 (22:34 +0000)]
Bug #6293 - Cannot regrade a question when a teacher has added a comment with a ' - Merged from MOODLE_16_STABLE.\r\rStupid, wreched, datalib.\r\rWhy can't datalib take care of addslashes, so the whole of the rest of the code can forget about it? That is how a database abstraction layer should work.\r\rI know, it is pointless to moan about it, but it has just cost me 3 hours, so I feel I have earned the right to moan.
tjhunt [Fri, 18 Aug 2006 10:29:34 +0000 (10:29 +0000)]
Bug #3481 - wildcard problem in cloze question. Thanks to Joseph Rezeau. Merged from MOODLE_16_STABLE, not a straight merge becuase of other 1.7 changes.
stronk7 [Thu, 17 Aug 2006 19:20:45 +0000 (19:20 +0000)]
Now all the XMLDBxxx->geSQL functions return an array of statements to be
executed (easily to handle them in the installation/upgrade process
individually. Also, it's possible to specify one statement end.
stronk7 [Thu, 17 Aug 2006 19:16:07 +0000 (19:16 +0000)]
adding role_allow_assign , role_allow_override table and dropping role_deny_grant
NOTE: Need to confirm that both these fields:
role_allow_assign->allowassign and
role_allow_override->allowoverride
are pointing to role->id (this is the assumption I've done, so I've
created them as FKs)