stronk7
8089f8f67e
MDL-17491 oci native driver: preparing to support transactions, oracle dirty hack and others. WIP
2009-09-21 11:28:42 +00:00
stronk7
df5f916570
Fix incorrect var name and unnecessary (object) cast
2009-09-15 22:14:54 +00:00
stronk7
7cfaef13aa
MDL-17491 oci native driver - improve exception/error handling to know what the hell is happening. ;-)
2009-09-11 09:38:42 +00:00
stronk7
81f5be122b
s/DB tra/BD Tra/g
2009-09-09 16:35:17 +00:00
stronk7
167cbee855
couple tests for DBs not supporting transactions
2009-09-09 16:33:45 +00:00
stronk7
8a4f9c0629
oci driver regexp abilities default to moodle_database ones
2009-09-09 16:04:49 +00:00
stronk7
dd67e10c8e
begin_sql() now uses current storage engine info to know if transactions are going to work
...
(only InnoDB detected as trasaction-able)
2009-09-09 16:01:31 +00:00
stronk7
dd1611a5bd
Pair number of DML tests in all DB, no matter if regexp is supported or no
2009-09-09 13:21:08 +00:00
stronk7
6d682bae11
MDL-17969 mssql (freetds/odbtp) native driver. Now supporting DB sessions
...
with proper locking.
2009-09-01 16:31:09 +00:00
stronk7
3f33c9e250
MDL-15181 temporary tables - now mysql driver uses the temptables object to
...
solve its carences handling temp tables.
2009-08-31 16:14:43 +00:00
stronk7
896a2a916c
MDL-17969 mssql (freetds/odbtp) native driver. Both import_record and reset_sequence implemented.
...
Only session locking support pending.
2009-08-31 14:25:51 +00:00
stronk7
520b730c56
MDL-17969 mssql (freetds/odbtp) native driver. Passes all the tests but:
...
- import record
- reset sequence
... so it's a good moment to add it.
2009-08-30 23:00:25 +00:00
stronk7
7a3ade00cd
MDL-15181 cross-db temporary tables support. First-cut.
2009-08-30 22:55:45 +00:00
stronk7
38d0db9f31
Concatenating NULLs with anything returns NULL
2009-08-30 20:53:12 +00:00
stronk7
71a71d591b
Added more sql_concat tests. MySQL and PG broken :-( Fix coming soon.
2009-08-30 16:01:31 +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
stronk7
77abbc47f6
Enforce strict mode in mysqli session in order to get consistent behaviour
...
in various operations (casting, altering columns...)
2009-08-28 11:17:47 +00:00
stronk7
76b6daf2b2
NOBUG. Add 2 missing fix_sql_params() calls in insert/update_record_raw()
...
causing named and qm parameters to be mixed in the same query. Curiously,
due to the ordered nature of the qms it wasn't breaking, but was incorrect.
2009-08-27 14:01:28 +00:00
stronk7
0e4a719b15
fix sql_substr() behaviour
2009-08-25 20:39:00 +00:00
stronk7
d60a7bc20f
Buggy ADOdb was returning PKs in the list of indexes. Look for it in information schema and extract from results.
2009-08-25 18:52:36 +00:00
stronk7
2ef655beac
Fix get_columns() for mssql adodb driver by custom-implementing it.
...
This implementation should be the used one in native drivers.
2009-08-25 17:41:10 +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
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