Commit graph

46 commits

Author SHA1 Message Date
Eloy Lafuente
e3acc8af7a MDL-20734 normalise_value() - moving from private to protected everywhere and abstracting 2009-11-04 13:19:11 +00:00
Eloy Lafuente
8fb501e96c MDL-20734 empties and zeros - implemented the normalise_value() function in
mysql and postgres to perform central normalisation of values for insert/
update/set_field. Now all DB drivers cast empty strings to 0 when working
with numeric columns (integer and decimal)
2009-11-03 23:34:43 +00:00
skodak
eb123debc6 MDL-19474 One year and a half ago we started designing and implementing our new databse abstraction layer which included brand new moodle native drivers. Today we are finally removing old legacy drivers that were still using adodb internally. From now on the adodb will be used only in some authentication and enrolment plugins, we are probably going to drop adodb there too later in 2.x. Thanks everybody who helped test and improve our new drivers, even bigger thanks to all the great developers who created ADOdb! 2009-10-08 22:34:34 +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
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
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
skodak
b4154c2d64 MDL-14990 implemented query loggin in new native DML drivers 2009-06-13 15:59:55 +00:00
skodak
bba506164d MDL-14679 fixing old TODOs 2009-06-13 09:09:30 +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
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
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
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
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
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
skodak
3ff8bf266b MDL-17522 improved dml tests, fixed sql LIMIT support in native drivers 2008-12-04 11:52:53 +00:00
skodak
1638ad5317 MDL-14679 removed unnecessary CFG from native drivers 2008-12-02 10:01:01 +00:00
stronk7
30d2832dd0 Added create_database() method (to be used at least by Win32 installers) 2008-11-30 19:29:37 +00:00
skodak
088a4df8fc MDL-14679 improved limit handling 2008-11-29 13:32:56 +00:00
skodak
7fdcb77942 MDL-17377 DML: prefixless database regression in new native drivers 2008-11-24 09:31:43 +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
758ba89a63 MDL-17347 reintroduced duplicate tests in get_records_sql() 2008-11-21 22:35:21 +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
d8f27d7bd2 MDL-16920 mysqli: refactored driver to use new query logging 2008-11-04 22:29:18 +00:00
skodak
a6283e9127 MDL-16920 mysqli: refactored driver to use new query logging 2008-11-04 22:25:23 +00:00
skodak
655bbf511d MDL-16669 dml: improved sql_substring(), added unit tests 2008-10-28 15:11:10 +00:00
skodak
beaa43db85 MDL-17036 dml: dbpersist moved into dboptions 2008-10-27 22:21:34 +00:00
skodak
fa76662bb2 MDL-14679 dml/native_mysqli transactions support 2008-10-27 20:58:37 +00:00
skodak
d5d0890c30 MDL-14679 dml/native_mysqli fixed sql concat 2008-10-25 18:40:35 +00:00
skodak
2aeb3bcbdb MDL-14679 dml/native_mysqli adding lang strings 2008-10-25 18:37:59 +00:00
skodak
c65845cca1 MDL-14679 dml/native_mysqli fixed decimal columns - unittests now complete without errors! 2008-10-25 18:31:40 +00:00
skodak
75dfa4a35d MDL-14679 dml/native_mysqli implemented blob type 2008-10-25 18:26:55 +00:00
skodak
12e09c6b8b MDL-14679 dml/native_mysqli fixed column cache 2008-10-25 18:01:54 +00:00
skodak
0487f9e2c9 MDL-14679 dml/native_mysqli improvements 2008-10-18 22:35:42 +00:00
skodak
7466a42fb4 MDL-14679 dml/native_mysqli new experimental native driver for mysqli - not fully finished yet, seems to work fine 2008-10-17 22:43:42 +00:00