Commit graph

70 commits

Author SHA1 Message Date
Petr Skoda
79ac5a8cf2 MDL-25910 add support for custom mysql socket location 2011-01-14 10:20:04 +01:00
Aparup Banerjee
bac1401534 lib MDL-25532 added dbport handling for during db creation 2010-12-09 06:18:20 +00:00
Aparup Banerjee
feaddca9e9 lib MDL-25532 added dbport option to mysqli driver 2010-12-07 07:30:35 +00:00
Eloy Lafuente
9882b2c824 MDL-25276 dml - fix/implement sql_cast2int/real() across the 5 drivers. Tests passing. 2010-11-18 01:27:49 +00:00
Petr Skoda
cd4f18595a MDL-23610 finally fixed the broken utf8 detection in mysqli driver
this was actually causing tons of false reports because people are often creating the database without the encoding parameter, especially when testing upgrades
2010-11-17 01:58:38 +00:00
Sam Hemelryk
215d7cb84e NOBUG: Improved docs for concat functions within mysql_native_moodle_database.php 2010-11-11 01:57:35 +00:00
Petr Skoda
70ff13bed7 MDLSITE-1007 ugly workaround for preventing of sloppy string to int casting in mysql 2010-10-04 08:47:58 +00:00
Petr Skoda
ac6f1a82f9 MDL-24321 switching to stdClass 2010-09-21 07:57:42 +00:00
Petr Skoda
16114b9db8 MDL-24080 new $notlike parameter added to our new sql_like(), hopefully nobody started using the $escaped param yet; unittests included 2010-09-04 14:39:01 +00:00
Petr Skoda
915ee3f9df MDL-23925 completely reverting binary comparison hack, we have to instruct admins to setup case+accent sensitive collation as default instead 2010-08-25 11:18:37 +00:00
Petr Skoda
9a1e8c5e52 MDL-23925 reverting changes, we need to fix uniqueness and collation issues first 2010-08-25 09:35:18 +00:00
Petr Skoda
6055f89d30 MDL-23925, MDL-23888 new sql_ilike() and sql_binary_equal() - this should finally allow us to solve many collation issues consistently for all supported databases; please note this changes some behaviour for non-english languages when mysql used; expect more commits that actually make use of these new features 2010-08-24 21:50:53 +00:00
Petr Skoda
9331d879eb MDL-14679 more return types added 2010-08-22 19:06:06 +00:00
Petr Skoda
3503dcad31 MDL-14679 fixing more incorrect return types 2010-08-22 19:00:28 +00:00
Petr Skoda
5212b07f20 MDL-14679 fixing incorrect return type of recordset methods 2010-08-22 18:55:29 +00:00
Petr Skoda
4a6c2ab88e MDL-14679 fixing obsolete driver names in comments 2010-08-22 18:51:45 +00:00
Petr Skoda
ed22700db5 MDL-23682 improved overriding of MyISAM default engine with something that supports ACID 2010-08-19 07:09:14 +00:00
Petr Skoda
d35ece6cce MDL-23682 new MySQL engine diagnostics + InnoDB is now used instead of MyISAM in new installs if available + improved mysql transaction support 2010-08-18 16:47:00 +00:00
Petr Skoda
d8fa8e406e MDL-23568 parameters of DML function insert_record are not modified any more < improved coding style, now using cast to array consistently 2010-07-31 20:51:22 +00:00
Petr Skoda
66c0ee78a5 MDL-21249 fixed wrong package grrrrrr, thanks Eloy! 2010-07-25 20:18:39 +00:00
Petr Skoda
f2ed3f05a7 MDL-21249 improved php docs and adding direct access prevention in dml 2010-07-25 12:57:24 +00:00
Petr Skoda
02df9cfdfb comment typos again 2010-05-21 18:25:59 +00:00
Eloy Lafuente
10f375aa2e MDL-22076 temptables - warn and dropped on disposal 2010-04-21 16:12:27 +00:00
Petr Skoda
d5a8d9aa71 MDL-20625 new delegated transaction support in DML 2009-11-07 08:52:56 +00:00
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