96 Commits

Author SHA1 Message Date
skodak
8aff848213 MDL-14589 minor database driver loading refactoring 2008-09-02 20:32:03 +00:00
skodak
ebf20af07d MDL-15635 dml library inclusion refactoring 2008-08-30 18:48:39 +00:00
skodak
a47c84c4bb MDL-15635 sqlite fixes - by Andrei Bautu 2008-08-30 18:46:18 +00:00
skodak
94898738ff MDL-15671, MDL-15717 DB->import_record() support - code based on patch by Andrei Bautu; added new param to raw insert; unit tests included 2008-08-25 21:00:47 +00:00
skodak
b3d0062f58 removing TODO: yes we want public raw insert methods, they are already used for log inserts ;-) 2008-08-25 13:19:22 +00:00
skodak
e16e38818e MDL-15671 support for table sequence resetting - code by Andrei Bautu (with minor modifications) 2008-08-25 12:52:49 +00:00
tjhunt
2e46e4610a MDL-16141 Oops, and another copy and paste error meant that there was a misleading comment. 2008-08-20 08:28:07 +00:00
tjhunt
798af5f156 MDL-16141 Oops, copy and paste error on the method name in the subclasses. Sorry. 2008-08-20 08:27:21 +00:00
tjhunt
1d861fce06 MDL-16141 Need an sql_position method to do POSITION(needle IN haystack) on crappy databases; and
MDL-16140 Table "testtable" already exists messages when re-running dml unit tests after a crash - make it self-healing.
2008-08-20 06:51:46 +00:00
nicolasconnault
3ee3b8c593 MDL-15837 Fix errors in unit tests 2008-08-18 15:07:31 +00:00
nicolasconnault
06a546bdae MDL-15837 Finished sql_ helper unit tests for mysql and postgres 2008-08-08 11:03:03 +00:00
nicolasconnault
1ddfd4ec23 MDL-15837 Started sql_ helper function tests for mysqli, mysql and postgres7 2008-08-07 14:55:03 +00:00
nicolasconnault
c824e1e16d MDL-15924 Added CLOB and BLOB tests 2008-08-07 12:59:44 +00:00
stronk7
b0cb2290f0 Added some functional tests to check the recordset keys. MDL-15798 2008-07-28 23:08:57 +00:00
stronk7
6607447275 Implement proper keys for adodb and pdo recordset iterators. MDL-15798 2008-07-28 22:22:22 +00:00
stronk7
740f769bd2 Final modifications to PHP docs while documenting DML function in Docs. 2008-07-25 23:31:08 +00:00
stronk7
ad434752aa Some more PHP Docs minor changes. 2008-07-25 18:41:35 +00:00
stronk7
b5e1cac9ef Polishing a bit PHP docs 2008-07-25 17:51:37 +00:00
moodler
de6961ccf7 Removing a warning when prefix == '' 2008-07-25 05:41:51 +00:00
nicolasconnault
9fed64fa19 MDL-15808 Applying Andrei's patch 2008-07-24 12:21:19 +00:00
dongsheng
06e84d52bd MDL-14129, remove error() call 2008-07-21 07:18:58 +00:00
nicolasconnault
767172e4d5 MDL-14958 Enum and default tests 2008-07-18 08:46:53 +00:00
skodak
8e378ec045 MDL-15071 improved error logging - credit goes to Andrei Bautu 2008-07-13 20:28:08 +00:00
skodak
6321dbf098 MDL-15071 added missing breaks - credit goes to Andrei Bautu 2008-07-13 20:27:51 +00:00
skodak
943de432e1 MDL-15071 fixes of the SQLite layer by Andrei Bautu 2008-07-13 10:12:20 +00:00
tjhunt
f38f7ff715 Make a comment a bit clearer. 2008-07-04 12:05:04 +00:00
stronk7
a3bf516d75 Check for ints being inserted into text (clob) fieds to cast them to string.
Affects insert_record(), update_record() and set_field_xx(). MDL-15460
2008-06-28 21:09:10 +00:00
stronk7
888375bc2c Added sql_ceil() helper method. MDL-15336 2008-06-28 18:25:25 +00:00
stronk7
f3700f8cb3 Adding new sql_null_from_clause() helper function from 19_STABLE. MDL-13861 2008-06-26 18:27:22 +00:00
skodak
16a5642c69 MDL-14679 var_export now used instead of addsingleslashes in installer; refactored the database setting initialisation 2008-06-22 22:53:40 +00:00
skodak
98e1919368 MDL-15071 fixed typo 2008-06-22 22:32:16 +00:00
skodak
eccc4a07b3 MDL-15071 fixed problem introduced into submitted patch 2008-06-22 22:05:59 +00:00
skodak
55946ffda6 MDL-15071 new sqlite pdo driver by Andrei Bautu (with minor changes) 2008-06-22 21:35:07 +00:00
skodak
eee5d9bb85 MDL-14956 DDL exceptions 2008-06-22 16:51:55 +00:00
skodak
4dd3bf0584 MDL-15320 fixed $cfg->library typo - thanks Andrei Bautu 2008-06-20 20:30:29 +00:00
nicolasconnault
50a12c87ce MDL-14905 Finished all basic tests. It should now be easy to extend these tests with more boundary conditions 2008-06-20 09:40:03 +00:00
nicolasconnault
0088bd3167 MDL-14905 Added more unit tests, plus stubs for all methods to be tested. Also fixed a bug in moodle_database:get_recordset_list(), which was using " AND " between values instead of " OR " 2008-06-18 14:53:01 +00:00
nicolasconnault
b579f0dbde MDL-14905 Removed table creation and data insertion from setUp() method, and put simple versions of these in each test method needing them. 2008-06-18 11:12:19 +00:00
skodak
ec22e38039 MDL-15273 basic read/write perf counter in moodle_database 2008-06-18 08:26:41 +00:00
skodak
edef70c9d0 MDL-15273 basic read/write perf counter in moodle_database 2008-06-18 08:26:40 +00:00
skodak
ab130a0b5f MDL-15273 basic read/write perf counter in moodle_database 2008-06-16 21:01:54 +00:00
nicolasconnault
7f9f11b5d4 MDL-14905 Added subclass of moodle_database for testing, plus some unit tests. 2008-06-16 15:41:23 +00:00
skodak
0537d4a071 MDL-15094 removed remaining references to $db 2008-06-15 12:34:08 +00:00
skodak
6807d2b3c6 MDL-14905 towards functional DB tests 2008-06-15 11:53:05 +00:00
skodak
6db04f1124 MDL-15094 protected adodb used instead of protected db - we will be able to search for obsoleted $db easier now 2008-06-15 11:41:02 +00:00
skodak
3dce78e125 MDL-15247 lib/dmllib.php is now obsolete 2008-06-15 11:35:25 +00:00
skodak
b1f93b1512 MDL-15246 moving all remaining ddl function to adminlib, keeping old lib/ddllib.php only for BC withexisting code; fixed inline docs related to ddl 2008-06-15 10:32:50 +00:00
stronk7
a77aaef267 Fix some missing $this-> in ddl/dml stuff. MDL-15236 2008-06-14 00:00:26 +00:00
skodak
251387d087 MDL-14956 basic exception support in Moodle + other minor related refactoring 2008-06-13 17:51:34 +00:00
skodak
a230012cd8 MDL-14905 towards functional DB tests 2008-06-13 08:35:29 +00:00