Commit Graph

49 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7) d16b0197de MDL-30026 improve session lock - mssql workaround for bug with scalar returned values 2011-11-13 19:06:44 +01:00
Petr Skoda 2b0e3941e9 MDL-30026 improve session lock acquire timeouts and other minor cleanup
This is partially based on original patch by Tony Levi.
2011-11-06 17:52:15 +01:00
Petr Skoda 148c65bfc8 MDL-29295 do not use strtok in dml and ddl layers
This prevents clobbering of internal pointer when code calling DML
uses strtok too. Unit test added to prevent future uses.
2011-09-14 00:19:55 +02:00
Petr Skoda 94ff0f08f3 Merge branch 'MDL-26922' of git://github.com/stronk7/moodle 2011-03-21 19:02:16 +01:00
Eloy Lafuente (stronk7) f80de2f25c MDL-26922 dml - avoid PHP_INT_MAX overflow on limit queries 2011-03-21 18:49:08 +01:00
Petr Skoda cd278cd454 MDL-26842 fix invalid parameter mix discovered by the new test 2011-03-21 17:19:36 +01:00
Aparup Banerjee 000c881e98 lib MDL-25595 added dbport option handling to mssql connect() 2010-12-09 07:01:03 +00:00
Eloy Lafuente 6bfe81293f MDL-25268 dml - change whitespace capture in limitfrom/limitnum regexp. Fixes some border cases 2010-11-20 00:49:01 +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
Eloy Lafuente 3a55ee2f5e MDL-25268 dml - improved limitnum/limitfrom regexp in ms drivers + tests 2010-11-17 10:39:56 +00:00
Aparup Banerjee 4f8b9632f8 database MDL-24863 applied fix like MDL-23997 which converts number to string. 2010-11-17 07:36:02 +00:00
Petr Skoda ac6f1a82f9 MDL-24321 switching to stdClass 2010-09-21 07:57:42 +00:00
Petr Skoda 559d79d25e MDL-24192 fixed null default value in text fields 2010-09-14 15:40:01 +00:00
Petr Skoda b809f81392 MDL-24192 standardised server info 2010-09-14 15:35:12 +00:00
Petr Skoda 97dbac93fd MDL-24192 fixed incorrect raw inserts 2010-09-14 15:30:02 +00:00
Petr Skoda 30899510c1 MDL-19057 fixed bitwise ops - all credit goes to Eloy Lafuente 2010-09-13 08:47:22 +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
Eloy Lafuente e016d12603 NOBUG mssql driver, fix some wrong uses recently introduced 2010-08-30 13:45:26 +00:00
Eloy Lafuente 78b3faa98c NOBUG mssql - nasty regression causing silent script abort without notice at all, grrr. 2010-08-30 10:45:54 +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 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
Eloy Lafuente 12ffe20371 NOBUG: Formatting and adding some comments about row versioning required 2010-05-26 17:45:40 +00:00
Eloy Lafuente 982fd65f2d MDL-22540 mssql driver - release lock doesn't use mode param 2010-05-23 09:24:08 +00:00
Petr Skoda 4d276e3482 more comment typos 2010-05-21 18:23:06 +00:00
Eloy Lafuente 10f375aa2e MDL-22076 temptables - warn and dropped on disposal 2010-04-21 16:12:27 +00:00
David Mudrak a0b7200d9c Fixing typos in DB persistant connection setting 2010-03-25 11:17:01 +00:00
Eloy Lafuente 63b3d8abb4 MDL-21264 sql_isnotempty() fixed. Thanks Tim!
Added (and passed) a bunch of tests for that function.
2010-01-07 14:59:54 +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
stronk7 72a3902f5a MDL-14679 fixing limitfrom, limitnum queries under pgsql, mssql and oracle 2009-10-16 14:14:03 +00:00
stronk7 8a89be3c24 MDL-17969 mssql driver: Fix boolean values in text columns 2009-10-14 14:14:00 +00:00
stronk7 3c41bba0f2 MDL-17969 mssql native driver: improve temp tables detection. Now they can be concurrently created in different sessions. 2009-10-09 18:39:16 +00:00
stronk7 ab62bd23ff MDL-14679 tidy phpdocs for sql_substr() a bit 2009-10-09 10:02:39 +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 4b1ee2b3c4 MDL-14679 temporary tables: modify approach so name changes are
now phisically stored and not only calculated on the fly. Oracle
will need that.
2009-09-28 18:10:07 +00:00
stronk7 5c08b24b22 MDL-17969 mssql native driver: better solution to avoid driver verbosity 2009-09-23 13:35:59 +00:00
stronk7 df5f916570 Fix incorrect var name and unnecessary (object) cast 2009-09-15 22:14:54 +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