mudrd8mz
44f6ca9e11
MDL-20334 re-fix - small performance improvement
...
As Petr suggested, is_array() is faster than empty() so it makes sense
to check it first.
2009-09-22 21:18:29 +00:00
mudrd8mz
1336c8ebca
MDL-20334 get_in_or_equal() does not accept empty array
2009-09-22 21:03:38 +00:00
stronk7
e4a16bdc88
Delegate prefix subtitution to each db driver to enforce calls to fix_sql_params() everywhere
2009-08-29 00:08:55 +00:00
skodak
2bad34a309
MDL-19689 fixed strictness constants, thanks Tim
2009-07-04 10:53:57 +00:00
skodak
e6c6531cce
MDL-19689 fixed strictness constants, thanks Tim
2009-07-04 09:30:59 +00:00
skodak
af12ea93ba
MDL-19689 new $strictness parameter in $DB->get_record() and $DB->get_field() family of DML methods
2009-07-03 22:38:56 +00:00
tjhunt
34a2777ccb
themes: MDL-19077 new $OUTPUT->header/footer to replace print_header/footer.
...
Also, part of the change from weblib.php functions to $OUTPUT-> methods.
This is part of http://docs.moodle.org/en/Development:Theme_engines_for_Moodle%3F
This is a big change, and the result is not perfect yet. Expect some debugging output
on some pages.
The main part of these changes are that $OUTPUT->header now looks for a file
in the theme called layout.php, rather than header.html and footer.html. Also
you can have special templates for certain pages like layout-home.php. There is
fallback code for Moodle 1.9 themes, so they still work.
A few of the old arguments to print_header are no longer supported. (You get an
exception if you try to use them.) Sam H will be cleaning those up.
All the weblib functions that have been replaced with $OUTPUT-> have version in
deprecatedlib, so existing code will go on working for the foreseeable future.
2009-06-26 09:06:16 +00:00
skodak
b4154c2d64
MDL-14990 implemented query loggin in new native DML drivers
2009-06-13 15:59:55 +00:00
skodak
54d51f604e
MDL-19470, MDL-14990 fixed db transactio nregression + towards query logging support
2009-06-13 10:16:29 +00:00
skodak
7900a54c30
MDL-14679 fixing old TODOs and adding more CLI support
2009-06-13 09:16:30 +00:00
skodak
1fbdf76ddb
MDL-19470 detection of unfinished transactions and transactions interrupted by exceptions
2009-06-12 10:59:28 +00:00
skodak
5da75074c4
MDL-19470 adding missing inline docs
2009-06-12 08:27:19 +00:00
skodak
4992614541
MDL-19470 fixing DML license headers
2009-06-12 08:14:29 +00:00
skodak
a1dda107bd
MDL-19470 detection of nested transactions, only one level allowed
2009-06-12 07:55:44 +00:00
stronk7
8fdb24f079
MDL-14992 sessions - proper destructor method and fixed dispose() behaviour.
2009-05-26 14:46:01 +00:00
tjhunt
adff97c505
lib/dml: new compatibility method sql_cast_2signed for when MySQL thinks that 1 * -1 = 18446744073709551615
2009-04-10 09:33:26 +00:00
stronk7
7e0db2e205
MDL-18244 sql_length() - new cross-db function to calculate the length in chars of any expression ; from 19_STABLE
2009-02-15 23:17:56 +00:00
skodak
3b09331066
MDL-17458 rewritten installer
2009-02-07 10:20:33 +00:00
skodak
56949c17de
MDL-14992 refactored use of session_write_close()
2009-01-17 15:25:08 +00:00
skodak
5e9dd01778
MDL-14992 pg session locking (8.2 and later only), refactoring and db session not default yet in new installs
2009-01-17 14:31:29 +00:00
skodak
3b1a9849bf
MDL-14992 pg sessions advisory locks accept only integers :-( trying to find a workaround
2009-01-17 12:12:48 +00:00
skodak
7f79aaeaad
MDL-14992 towards better db sessions - session locking for mysql
2009-01-16 23:02:24 +00:00
skodak
0a2092a307
MDL-14992 towards better db sessions
2009-01-16 17:27:36 +00:00
skodak
117679db37
MDL-17859 implemented caching in get_tables()
2009-01-12 18:10:50 +00:00
skodak
c643c2f513
MDL-17806 fixed sql_bit_and use which returns number and that is why it is not suitable for SQL conditions; thanks penny!
...
Fixed DML docs too.
2009-01-07 18:55:32 +00:00
stronk7
c362878ed7
MDL-17645 delete_records_list - Tidied a bit return values. Fix behaviour when no values are passed + new dml tests for all *_list() functions.
2008-12-15 21:41:09 +00:00
tjhunt
0e8e23cce6
dml: MDL-17645 New database method delete_records_list.
2008-12-15 02:13:11 +00:00
skodak
66e75f8d51
MDL-17491 experimental native oracle driver - still bugy and incomplete, this will require more core changes, grrrrrr
2008-12-05 00:10:27 +00:00
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