Commit graph

426 commits

Author SHA1 Message Date
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
nicolasconnault
bb78c7888f MDL-14958 Basic tests done 2008-06-13 07:59:47 +00:00
skodak
5fe3f5c377 MDL-14905 towards functional DB tests 2008-06-12 15:18:11 +00:00
skodak
b936956e2f MDL-14905 towards functional DB tests 2008-06-12 09:38:49 +00:00
skodak
809df0e2b6 MDL-14905 towards functional DB tests 2008-06-10 22:05:29 +00:00
skodak
e6b4f00ed7 MDL-14905 towards functional DB tests 2008-06-10 19:54:27 +00:00
skodak
e4c033a9dd MDL-15194 adodb separation, dml database creation support 2008-06-09 20:22:11 +00:00
skodak
96d1387809 MDL-14679 towards adodb separation 2008-06-09 18:48:28 +00:00
skodak
294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00
stronk7
c45ea1dadb Minor recordset cleanup 2008-06-09 15:32:25 +00:00
skodak
b922e86b7a MDL-15181 temp table support in ddl/dml 2008-06-07 14:41:01 +00:00
skodak
dd87720f3a MDL-14679 fixed incorrect eror reporting 2008-06-04 23:59:49 +00:00
skodak
0208b97cb6 MDL-14679 fixed incorrect fields param 2008-06-04 23:53:44 +00:00
skodak
ce7fbdb8de MDL-15132 fixed broken sql menu functions - thanks Howard 2008-06-04 09:14:17 +00:00
skodak
4c14345543 MDL-15140 get_records_list() doesn't work as in 1.9 - thanks Jerome 2008-06-04 07:59:03 +00:00
nicolasconnault
d24832f9af MDL-14967 DB upgrades. Not finished yet. 2008-06-02 16:06:33 +00:00
skodak
44e1b7d7ff MDL-14679 remoed all instances of get_records_list() 2008-06-01 15:42:48 +00:00
skodak
4906c7de46 MDL-14679 fixed count_records() API 2008-06-01 14:08:44 +00:00
skodak
b820eb8c60 MDL-15073 delete_records now truncates table if deleting all records, fixed some regressions 2008-05-31 15:32:28 +00:00
skodak
29f83769d1 MDL-14679 towards reports and stats conversion 2008-05-31 14:35:58 +00:00
skodak
ce8c75eeb8 MDL-14679 towards /user conversion 2008-05-31 11:13:21 +00:00