Commit graph

174 commits

Author SHA1 Message Date
skodak
3ff8bf266b MDL-17522 improved dml tests, fixed sql LIMIT support in native drivers 2008-12-04 11:52:53 +00:00
skodak
e6df37346f MDL-17408 DML: new sql_modulo() method + test 2008-11-26 08:19:45 +00:00
skodak
082ae8215e MDL-15837 more dml unit tests 2008-11-22 19:32:16 +00:00
skodak
ce1526061c MDL-17317 DML: more exceptions - now in connect too 2008-11-22 01:16:52 +00:00
skodak
be415e95be MDL-17354 moved reset_sequence into dbmanager 2008-11-21 21:40:50 +00:00
skodak
22d77567a9 MDL-17317 DML: Exceptions used by all drivers now :-) expect some more commits/cleanup soon 2008-11-21 20:09:13 +00:00
skodak
3e51b51d05 MDL-17317 lets make Netbeans happy, it is not clever enough to detect undefined vars properly ;-) 2008-11-19 23:20:46 +00:00
tjhunt
34a36b2e85 Improve error message. 2008-11-18 04:22:57 +00:00
skodak
ba63f3775b MDL-17130 dml: removed lambda-style functions - they might be a major scalability problem in future 2008-11-06 18:36:50 +00:00
skodak
591ffe1a6a MDL-17129 dml/ddl: improved ddl exceptions when changing db structure 2008-11-05 10:45:45 +00:00
skodak
c23b0ea11b MDL-17129 dml: implemented exceptions in new drivers, yay! 2008-11-04 23:07:14 +00:00
skodak
9214025e3e MDL-17129 basic dml exceptions 2008-11-04 21:50:13 +00:00
skodak
1500142bfb MDL-14990 dml: towards proper logging/perf infrastructure 2008-10-29 23:55:16 +00:00
tjhunt
10e99feaa2 Fix and improve error message. 2008-10-29 06:54:32 +00:00
skodak
bb5f11ece7 MDL-14990 dml: towards proper logging/perf infrastructure 2008-10-28 22:31:26 +00:00
stronk7
40b5f6552b Missing parenthesis in sql_substr(). MDL-16669 2008-10-28 17:57:51 +00:00
skodak
655bbf511d MDL-16669 dml: improved sql_substring(), added unit tests 2008-10-28 15:11:10 +00:00
skodak
6cc9771844 MDL-14990 dml: added __destruct method, will be needed for logging 2008-10-28 12:02:13 +00:00
skodak
beaa43db85 MDL-17036 dml: dbpersist moved into dboptions 2008-10-27 22:21:34 +00:00
skodak
fb76304b3b MDL-17020 dml: native pgsql driver - implementation and unittests of transactions 2008-10-27 20:21:04 +00:00
skodak
30fff7b74f MDL-17020 dml: native pgsql driver - improved get_record and get_field - this should be faster 2008-10-27 15:30:38 +00:00
skodak
935956b8c2 MDL-17020 dml: native pgsql driver - $ bound syntax fully implemented, we do not need string for exception anymore 2008-10-27 12:00:04 +00:00
skodak
3f0c17b8ef MDL-17020 dml: dollar bound query syntax support 2008-10-26 12:45:05 +00:00
skodak
6a68d8c0e1 MDL-16930 dml: converting print_error to exceptions 2008-10-25 17:43:45 +00:00
skodak
0487f9e2c9 MDL-14679 dml/native_mysqli improvements 2008-10-18 22:35:42 +00:00
nicolasconnault
ba14791091 MDL-16483 Reverting as Petr ordered... I mean, suggested. 2008-09-16 14:35:15 +00:00
nicolasconnault
b9c639d6c2 MDL-16483 Refactored install/upgrade code into lib/adminlib. Created an intermediate MoodleUnitTestCase class that overrides simpletest's constructor, destructor and setup/teardown methods. All moodle unit tests must extend this class. 2008-09-16 12:19:43 +00:00
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
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
e16e38818e MDL-15671 support for table sequence resetting - code by Andrei Bautu (with minor modifications) 2008-08-25 12:52:49 +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
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
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
tjhunt
f38f7ff715 Make a comment a bit clearer. 2008-07-04 12:05:04 +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
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
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
skodak
0537d4a071 MDL-15094 removed remaining references to $db 2008-06-15 12:34:08 +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