stronk7
73bb7f8db0
Setting some ADOdb variables properly and calling to the new
...
configure_dbconnection() function to set DB encoding and other
preliminar settings.
2006-08-20 18:22:48 +00:00
stronk7
d086d854a8
Added the configure_dbconnection() function to be executed
...
after DB conection. Responsible to set a lot of things
(charsets, dbsession variables...)
2006-08-20 18:21:33 +00:00
stronk7
f9543de627
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.
2006-08-20 18:19:50 +00:00
stronk7
16f07ff2b0
MySQL doesn't like any name on its primary keys (neither "primary")
2006-08-20 18:03:55 +00:00
stronk7
c412278140
Although difficult, now all the key/index/sequence/trigger names
...
are quoted if they are reserved words
2006-08-20 18:01:50 +00:00
stronk7
134e3128bb
Added the install_from_xmldb_file() function that
...
loads, transform and execute one entire XMLDB
file into the correct SQL sentences.
2006-08-20 15:50:27 +00:00
stronk7
293bccd539
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).
2006-08-20 09:37:56 +00:00
moodler
c06140513d
Fixed up get_user_roles to remove notices
2006-08-19 08:12:45 +00:00
tjhunt
707b5c9953
Renamed unit tests to match Eloy's work.
2006-08-19 07:47:41 +00:00
moodler
9f948d1136
Just minor doc tweaks
2006-08-19 02:58:07 +00:00
stronk7
465a802937
Thought this was commited. Solve one bug in trigger generation
2006-08-19 00:58:30 +00:00
stronk7
7e13be0887
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)
2006-08-18 22:56:08 +00:00
tjhunt
ef82286874
Bug #6293 - Cannot regrade a question when a teacher has added a comment with a ' - Merged from MOODLE_16_STABLE.
Stupid, wreched, datalib.
Why 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.
I 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.
2006-08-18 22:34:54 +00:00
tjhunt
865b753486
Code cleanup. Merged from MOODLE_16_STABLE.
2006-08-18 22:26:04 +00:00
tjhunt
5553c2ec47
New function record_exists_select with unit tests for all the record_exists_* functions.
2006-08-18 11:28:30 +00:00
moodler
d100b8a04d
Make sure .htaccess is created in dataroot, just in case
2006-08-18 09:54:09 +00:00
tjhunt
1780811d55
Added todo.
2006-08-18 08:14:47 +00:00
toyomoyo
68c5252623
adding functions and interface for access control - role assignment and role overrides
2006-08-18 08:01:16 +00:00
vinkmar
f8a511519b
admin page cleanup (google soc 2006)... updated field name for category editing function so that it doesn't conflict with 'edit' when used for blocks
2006-08-18 07:29:19 +00:00
skodak
408965376d
still more upgrade logging fixes
2006-08-18 00:01:37 +00:00
skodak
26c91c7394
major upgrade logging speed improvement - write buffer implemented
2006-08-17 23:50:18 +00:00
skodak
7949356d64
fixed missing '}'
2006-08-17 22:49:21 +00:00
skodak
dedb2304cd
upgrade logging cleanup, fixes - more improvements ahead
2006-08-17 22:37:34 +00:00
stronk7
1bf63d33c8
Oracle automatically builds UIXs for UKs
2006-08-17 19:40:49 +00:00
stronk7
9dcc6300a7
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.
2006-08-17 19:20:45 +00:00
stronk7
de16da7293
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)
2006-08-17 19:16:07 +00:00
stronk7
46d42a3cc5
Now ddllib includes all the required xmldb stuff
2006-08-17 16:59:14 +00:00
tjhunt
cfa27f4472
Fix bug in new function get_field_select(), and this time add a unittest to see if the new function works!
2006-08-17 16:28:29 +00:00
toyomoyo
f9e2f481df
adding role_allow_assign , role_allow_override table and dropping role_deny_grant
2006-08-17 08:58:51 +00:00
stronk7
6c11ad54d8
UNIQUE KEY is UNIQUE
2006-08-17 00:31:23 +00:00
stronk7
848caec8c2
Now we are able to generate all the module SQL (any RDBMS) with one
...
simple function call (final inserts are missing yet)
2006-08-17 00:16:34 +00:00
stronk7
f075bac4f7
Bah, Oracle requires the default clause BEFORE the not null clause.
2006-08-16 23:45:18 +00:00
stronk7
6aa7885eb5
Minor adjustments to some comments.
2006-08-16 23:17:28 +00:00
stronk7
ada5648103
Fixing some potential problems with prefixes and object names.
2006-08-16 23:01:46 +00:00
stronk7
d7444bfce3
Initial commit of oci8po generator
2006-08-16 22:58:51 +00:00
stronk7
866c0747e8
Line feed added + small bug
2006-08-16 22:23:39 +00:00
stronk7
d7bf5f9917
Initial version of the mssql generator
2006-08-16 21:46:08 +00:00
stronk7
2ad7da9bec
Initial version of the postgres7 generator
2006-08-16 18:41:47 +00:00
stronk7
0c82f279c6
Added one more configuration parameter to disable inline SQL to be added in enum column lines
2006-08-16 18:37:33 +00:00
stronk7
aacf02c55b
Proper parent init and comment close
2006-08-16 17:53:24 +00:00
stronk7
6caad5177d
Minor change to do proper create table close
2006-08-16 17:51:49 +00:00
stronk7
e54ae5264b
Partial rework of the mysql generator. Working now.
2006-08-16 17:43:55 +00:00
stronk7
1f0872e8ba
Changed one default
2006-08-16 17:34:46 +00:00
stronk7
91496d15bc
Initial commit of the base generator class.
2006-08-16 17:28:41 +00:00
tjhunt
1d723a169a
Bug #6267 - questionlib.php delete_question infinite loop with rantom questions. Thanks to mbockol at carleton dot edu. Merged from MOODLE_16_STABLE.
2006-08-16 16:17:18 +00:00
stronk7
54121a7921
permission has to be signed integer in mysql. Mimic from sql files
2006-08-16 16:06:37 +00:00
toyomoyo
77d4953ee2
bumpoing up version, permission has to be signed integer in mysql!!! added new capabilities in access.php
2006-08-16 07:57:51 +00:00
tjhunt
a21567892f
Refactor how question types register themselves with the question bank. This change makes it easier for 3rd party question types to control their destiny, but is also backwards compatible, in that old 3rd party plugins will still work.
See http://moodle.org/mod/forum/discuss.php?d=51796 for more details.
2006-08-15 21:25:38 +00:00
tjhunt
d3eeba599b
Delete stray space.
2006-08-15 16:53:24 +00:00
tjhunt
ab757152ec
New function get_field_select().
2006-08-15 13:44:22 +00:00