309 Commits

Author SHA1 Message Date
Petr Skoda
e9fec42f01 MDL-23568 new unit test that verifies the id is not modified in isnert_record() methods 2010-07-31 21:13:46 +00:00
Petr Skoda
1045bec09c MDL-23568 fixed regression when using blobs 2010-07-31 21:12:02 +00:00
Petr Skoda
2d1e17c899 MDL-23568 fixed regression 2010-07-31 21:11:26 +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
msketcham
0c57c86713 This is the Native SQL*Server adapter for the SQL Server Driver for PHP version 1.1 released by Microsoft.
Prerequisites for installation and usage: Install SQL Server 2005 or later, and the SQL Server Driver for PHP version 1.1 (http://msdn.microsoft.com/en-us/library/cc296170(v=SQL.90).aspx), and configure the SQL Server installation using SQL Server Management Studio with the following command:
USE MASTER
GO
ALTER DATABASE <your-database-name> SET READ_COMMITTED_SNAPSHOT ON
GO
2010-06-23 22:40:49 +00:00
Eloy Lafuente
471dc4d307 NOBUG postgresql driver - better index names detection. Related to MDL-22804 2010-06-16 15:46:08 +00:00
Sam Marshall
b3f1efb553 dml NOBUG Corrected out of date phpdoc comment 2010-06-16 10:13:41 +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
2434f624ad yet more comment typos 2010-05-21 18:32:44 +00:00
Petr Skoda
14c423d70e a few more comment typos 2010-05-21 18:29:35 +00:00
Petr Skoda
02df9cfdfb comment typos again 2010-05-21 18:25:59 +00:00
Petr Skoda
4d276e3482 more comment typos 2010-05-21 18:23:06 +00:00
Petr Skoda
862d54c314 fixed a large number of typos in comments :-( 2010-05-21 18:18:42 +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
cd6d352396 NOBUG: Normalise generated param names so we can safely use sql_xxx() helper functions everywhere. 2010-03-22 18:06:59 +00:00
Eloy Lafuente
438d73f84f NOBUG: Handle duplicated NAMED params in set_field() uses 2010-03-22 17:00:46 +00:00
Eloy Lafuente
bc4fd49d29 NOBUG: Adding 3 new tests that reveal 2 different problems with NAMED params 2010-03-22 14:41:57 +00:00
Eloy Lafuente
00511e2101 MDL-21834 DDL tests - fix concurrent temp tables for postgresql 2010-03-17 01:32:59 +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
Eloy Lafuente
ff8c7b2ac8 MDL-19057 DML tests - prevent CLOB/BLOB contents to be in error/pass output 2009-11-30 16:45:07 +00:00
Eloy Lafuente
7baf478491 MDL-20625 concurrent tests - added note about MySQL and MSSQL 2009-11-08 23:15:02 +00:00
Eloy Lafuente
9d3cbeb695 MDL-17491 oracle connections - fix annoyance when multiple connections
are used and enforce new connections by using oci_new_connect()
2009-11-08 23:13:31 +00:00
Petr Skoda
07b81ebd2d MDL-20625 coding help - better detection of missing commit or rollback 2009-11-08 21:19:11 +00:00
Petr Skoda
c0829930c8 MDL-20625 new test for transaction cuncurrency - proposed by Eloy 2009-11-08 19:00:19 +00:00
Petr Skoda
3400bf6cc4 MDL-20625 fixed typos, credit goes to Martin Langhoff 2009-11-07 16:00:13 +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
Eloy Lafuente
2f9c1693a0 MDL-20734 Changed tests behaviour so insert/update/set_field will be expected to cast
empty strings (in numeric columns) to 0
2009-11-03 19:53:11 +00:00
Eloy Lafuente
fdc45ac360 NOBUG: Added some tests with empty strings in insert_record/update_record/set_field
that reveal inconsistencies between DBs
2009-11-03 18:11:18 +00:00
Eloy Lafuente
7c47635220 Added missing PK causing problems in MySQL. Will test that later in
proper DDL tests...
2009-11-03 10:20:56 +00:00
Petr Skoda
4103f151f9 MDL-20715 fixed notice from dml native oci driver when php driver not installed 2009-11-02 14:33:46 +00:00
Petr Skoda
117bd74897 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 11:31:16 +00:00
Dan Poltawski
8ee8780ebf lib/dml - 'complicated sql' unit test MDL-19645
I have just added one specific example SQL syntax which was breaking on
earlier versions of sqlite. We need to add more variations used throughout
moodle so different engines can be properly tested for compatibility.
2009-10-27 23:25:07 +00:00
stronk7
5d91786a35 MDL-19057 dml tests: Complete limitfrom/limitnum tests and delete some dupes 2009-10-16 14:16:18 +00:00
stronk7
72a3902f5a MDL-14679 fixing limitfrom, limitnum queries under pgsql, mssql and oracle 2009-10-16 14:14:03 +00:00
stronk7
628dff250f MDL-19057 dml tests: Completed (and passed in all the big four!) the
insert_record() and update_record() tests. Including nulls, booleans, zeros, empties,
quotes and backslashes, some php operations, clobs and blobs. Also covering
get_record()/get_recordset() for all those cases.
2009-10-15 22:20:02 +00:00
stronk7
489ef94fa8 Fix storing onf NULLs by set_field_xxx() into binary columns. 2009-10-15 15:17:21 +00:00
stronk7
fbabe35a56 MDL-19057 dml tests: Completed (and passed in all the big four!) the
set_field_select() tests. Including nulls, booleans, zeros, empties,
quotes and backslashes, some php operations, clobs and blobs. Going
to mimic all them to insert/update_record tests.
2009-10-14 17:53:38 +00:00
stronk7
f95cc12575 MDL-17491 oci driver: exception when binding strings into int/float
colums. PHP casting was causing unexpected behaviour. Grrr.
2009-10-14 17:27:13 +00:00
stronk7
8a89be3c24 MDL-17969 mssql driver: Fix boolean values in text columns 2009-10-14 14:14:00 +00:00
stronk7
2b4cf032fa Fix retrieving of NULLs in PG databases and binary fields 2009-10-14 10:32:48 +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
08559d7de0 MDL-17491 oci native driver - now supporting db locks (hence db sessions) 2009-10-08 14:39:58 +00:00