Commit graph

95 commits

Author SHA1 Message Date
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
skodak
5fe3f5c377 MDL-14905 towards functional DB tests 2008-06-12 15:18:11 +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
b922e86b7a MDL-15181 temp table support in ddl/dml 2008-06-07 14:41:01 +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
c74a123781 MDL-14679 detect incorrect key=>value pairs in $conditions - in case somebody forgets "=>" and uses "," instead 2008-05-30 16:56:43 +00:00
skodak
e108cea45f MDL-14957 fixed get_indexes() comments 2008-05-25 22:25:17 +00:00
skodak
71c920cf8f MDL-14957 fixed get_tables() comments 2008-05-25 22:22:57 +00:00
skodak
0a0ea79d7d MDL-14957 get_columns() improvements - mostly docs; definition moved to new file 2008-05-25 22:21:01 +00:00
skodak
06c1a1daf4 MDL-14981 regex search support in datalib, fixed course search 2008-05-25 20:43:46 +00:00
skodak
25d854c67c MDL-14910 added option to dispose existing database instance (closes connection and releases all resources) 2008-05-25 19:56:34 +00:00
skodak
a7544e377a MDL-14974 improved columns caching implementation 2008-05-25 09:31:38 +00:00
skodak
3b90506304 MDL-14679 improved get_in_or_equal() method 2008-05-24 20:42:40 +00:00
skodak
1d2b7f03cd MDL-14679 fixed get_in_or_equal() method 2008-05-24 13:05:34 +00:00
nicolasconnault
73f7ad715e MDL-14905 Started on the DDL functional tests. Added an ugly but temporary hack into error() and print_error(), so that they throw an exception instead of dying when UNITTEST is defined. 2008-05-21 14:59:33 +00:00
stronk7
6d5a22b208 Installer fixed, prefixes improved, moved conn settings to connect() and some more improvements. MDL-14864 2008-05-19 18:02:33 +00:00
skodak
f33e1ed4ae MDL-14679 ok, here is the big patch with new dmllib and ddlib API, some code is already converted, XML db editor works; see tracker for details of regressions and TODOs 2008-05-15 21:40:00 +00:00