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
poltawski
6a2a58f773
Sorry managed to commit sql_bitxor twice
2009-06-27 21:26:08 +00:00
poltawski
9f300b3afa
dml/sqllite MDL-19644 - add sql_bitxor compatibility
...
fixes one unit test
2009-06-27 21:23:49 +00:00
poltawski
e9c734ba5c
dml/sqllite MDL-19643 Throw exceptions to make things more robust
...
Various functions were catching the pdo error and returning
false, but this isn't enough. I have modified the functions to
throw a dml exception like other drivers do.
2009-06-27 21:22:50 +00:00
poltawski
fa648098b2
dml/sqllite MDL-19642 - Make connections more robust
...
- Include 'pdo' as an extension to be checked for
- Bail out of a connect and throw an exception if the required
extensions aren't loaded
- Don't ignore pdo exceptions on connect error - throw our
own exception
2009-06-27 21:22:27 +00:00
poltawski
0661894ccf
dml/sqllite MDL-19644 - add sql_bitxor compatibility
...
fixes one unit test
2009-06-27 21:22:03 +00:00
poltawski
88931a0e41
Whoops, didn't mean to remove Andrei's copyright.
2009-06-27 14:48:18 +00:00
poltawski
d5377019e4
dmllib/pdo MDL-19641 - Fixup PDO (SQLlite) support
...
By changing the behaviour of the recordset to match
the native recordset we fix the major compatbility problems
Before: Can't get a working install to run tests
After: 353 passes, 10 fails and 0 exceptions.
(and moodle can install on my iphone)
2009-06-27 14:46:44 +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
stronk7
d83bcdfcc7
Oops, I left some debugging info in my prev commit.
2009-06-23 08:24:50 +00:00
stronk7
16a2a41273
Fix one test failing depending of the debug/debugdisplay settings.
2009-06-23 00:24:52 +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
eda26314d6
MDL-19474 adding TODO for removing of obsoleted adodb drivers before branching
2009-06-13 09:11:54 +00:00
skodak
bba506164d
MDL-14679 fixing old TODOs
2009-06-13 09:09: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
4bddb84049
MDL-19470 adding missing inline docs
2009-06-12 08:15:53 +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
skodak
f9f8baa89e
MDL-17491 ora 10 min required, no need for legacy hacks anymore
2009-06-03 20:55:00 +00:00
skodak
4b5732f987
MDL-17020 pg 8.3 required, no need for legacy hacks anymore :-D
2009-06-03 20:53:19 +00:00
stronk7
8fdb24f079
MDL-14992 sessions - proper destructor method and fixed dispose() behaviour.
2009-05-26 14:46:01 +00:00
skodak
e0eda20921
MDL-19010 reverting last commit- DML must throw exceptions - fix the calling code
2009-05-06 10:39:51 +00:00
nicolasconnault
eb2761f856
MDL-19010 Fixing upgrade code to work with mysql. Also returning false when get_recordset_sql hits a SQL error, instead of crashing during upgrade with a Fatal error: Exception thrown without a stack frame in Unknown on line 0
2009-05-06 10:22:33 +00:00
stronk7
f9ecb1716d
MDL-18577 drop enums support - fixed dml/ddl tests to be runnable once enums are out. Some
...
are failing but will be fixed/completed soon by MDL-19057
2009-05-03 23:46:40 +00:00
stronk7
d64514aab0
MDL-14679 - PG get_indexes() fix - minor problem retrieving indexes with columns quoted
2009-05-03 17:19:40 +00:00
stronk7
ffaf9c59a9
MDL-18577 drop enums support - step3: Missing return
2009-05-01 23:35:36 +00:00
stronk7
e00ab5f994
MDL-18577 drop enums support - step3: Fix oci8 adodb set_field_select() without select
2009-05-01 23:35:01 +00:00
stronk7
762bd0df3c
MDL-18577 drop enums support - step3: fix native pgsql set_field_select() handling of BLOBs
2009-05-01 23:33:24 +00:00
stronk7
0aa060602f
MDL-14679 mssql fix - Fix boolean handling in mssql + set_field() without params.
2009-04-28 23:49:33 +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
tjhunt
edbc93a7e4
Remove failing unit tests. (We are going to remove enum support from the database layer anyway.)
2009-03-30 01:57:47 +00:00
stronk7
37d975e11f
Fix tests (missing declaration) and add tests for sql_length()
2009-02-15 23:43:34 +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
797ffad0c7
MDL-18194 detect if driver install before trying to create db
2009-02-09 17:51:01 +00:00
skodak
3b09331066
MDL-17458 rewritten installer
2009-02-07 10:20:33 +00:00
skodak
d7d86462bb
MDL-14992 adding links to oracle locking info - thanks Eloy
2009-01-17 17:44:48 +00:00
skodak
fc12e1f727
MDL-14992 adding links to oracle locking info - thanks Eloy
2009-01-17 17:44:30 +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
440d0a5ae5
MDL-17880 removed debug code, grr
2009-01-13 19:07:41 +00:00
skodak
c1a6529be1
MDL-17880 fixed removing of leading 0 from strings when emulating bounds in DML
2009-01-13 13:12:59 +00:00
skodak
117679db37
MDL-17859 implemented caching in get_tables()
2009-01-12 18:10:50 +00:00