Eloy Lafuente (stronk7)
5cff28cfa1
MDL-30739 add one test to confirm the solution is cross-db
2011-12-15 13:14:26 +01:00
Aparup Banerjee
c32e3a0a0a
Merge branch 'MDL-30026_sqlsrv' of git://github.com/stronk7/moodle
2011-11-23 14:34:34 +08:00
Petr Skoda
fed02be153
MDL-30147 do not expect text comparison exceptions when not in debug mode
...
Unfortunately the column type fetching is too expensive, we do extra verification in debug mode only.
2011-11-19 09:44:33 +01:00
Petr Skoda
a453ec079f
MDL-30147 optional verification if dml exception when table missing
2011-11-19 09:39:07 +01:00
Eloy Lafuente (stronk7)
870896eca1
MDL-30147 dml - mysql and no params now behaving "standard"
2011-11-19 09:27:10 +01:00
Eloy Lafuente (stronk7)
a8097d6dda
MDL-30147 dml - one more test behavior without params
2011-11-19 09:27:09 +01:00
Eloy Lafuente (stronk7)
8f201c9ded
MDL-30147 dml - added some tests demoing bad get_columns() behavior
2011-11-19 09:27:09 +01:00
Petr Skoda
69ac5d478f
MDL-30147 do not rely on dml exception type outside of dml layer
...
The trouble is that dml driver methods (insert, update, select) are not guaranteed to return the same exception class for various db problems and coding style issues. The recommended practice is to catch dml_exception only.
2011-11-19 09:25:11 +01:00
Petr Skoda
c04e80e328
MDL-30147 detect missing table when processing query conditions
2011-11-19 09:16:51 +01:00
Eloy Lafuente (stronk7)
f8cd596aae
MDL-30026 dml - fix sqlsrv support for session locks
2011-11-18 13:02:24 +01:00
Eloy Lafuente (stronk7)
da3a1f3ae7
MDL-30026 improve session lock - stronger detection for oracle
2011-11-13 19:23:53 +01:00
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
Eloy Lafuente (stronk7)
12dfd6df01
MDL-30026 improve session lock - unit tests & minor comment fixup
2011-11-13 19:05:57 +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
Eloy Lafuente (stronk7)
44a9630623
MDL-29815 dbtest - added one test_get_records_sql_complicated related test
2011-10-25 17:37:34 +02:00
Eloy Lafuente (stronk7)
fc0aebb595
MDL-29496 unittests - verify COALESCE() cross-db compatibility
2011-10-18 15:58:56 +08:00
Eloy Lafuente (stronk7)
69857fa06e
MDL-29567 postgresql - handle negative defaults in numerical cols properly
2011-09-29 01:20:10 +02:00
Eloy Lafuente (stronk7)
c75d9b6700
MDL-29567 unit tests - add some tests to cover negative defaults in numerical cols
2011-09-29 01:15:37 +02:00
Eloy Lafuente (stronk7)
61e55061a6
MDL-29566 mysql - length / decimal specs in float columns are optional
2011-09-29 00:24:54 +02:00
Eloy Lafuente (stronk7)
12e89a0a69
MDL-29566 unit tests - add some tests to cover get_columns() with number/float columns
2011-09-29 00:13:44 +02:00
Eloy Lafuente (stronk7)
018213bed2
MDL-29415 xmldb - fix get_columns() in oracle to get char based lengths + test
2011-09-19 00:34:10 +02: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
Aparup Banerjee
e2e1cf53db
Merge branch 'MDL-29198' of git://github.com/stronk7/moodle
2011-09-05 12:10:32 +08:00
Eloy Lafuente (stronk7)
ee91760321
MDL-28080 DML unit tests - cover tweak_param_names() and the new 30 chars limit exception
2011-09-01 19:46:30 +02:00
Eloy Lafuente (stronk7)
07ee317d2a
MDL-28080 oracle - avoid tweak_param_names() tweaking too much :-P
...
Sometimes the (oracle only) tweak_param_names() method was causing
placeholders having > 28 chars length to exceed the 30 chars limit
imposed by Oracle. With this commit the tweak is performed by
replacement for such long placeholders and, at the same time, the
tweak has been commented out from insert/update because it is not
necessary there (placeholders are safe column name always)
2011-09-01 19:42:29 +02:00
Tim Hunt
8de7858fb9
MDL-28080 coding_exception for over-long placeholder names.
2011-09-01 11:47:40 +02:00
Eloy Lafuente (stronk7)
4b5c84ae30
MDL-29198 DB - make delete_records transactional safe when needed
2011-09-01 11:05:21 +02:00
Eloy Lafuente (stronk7)
1ccfd8dcbf
MDL-26819 quiz statistics - use cross-db GROUP BY expression
2011-08-28 22:12:40 +02:00
Eloy Lafuente (stronk7)
43c88235c5
Merge branch 'w31_MDL-28533_m22_columnperf' of git://github.com/skodak/moodle
2011-08-09 19:30:54 +02:00
Petr Skoda
d5b3deecba
MDL-27685 fix pg LIKE escape trouble
2011-08-07 13:19:02 +02:00
Petr Skoda
bce595034c
verify where_clause() only in debug mode
2011-08-05 21:33:16 +02:00
Sam Hemelryk
5b966cbb3b
Merge branch 'MDL-28135' of git://github.com/nebgor/moodle
2011-07-06 10:53:48 +08:00
Andrew Robert Nicols
b7eceef75f
MDL-28193 Add $external arg to get_driver_instance
...
Signed-off-by: Andrew Robert Nicols <andrew.nicols@luns.net.uk>
2011-07-05 12:22:41 +01:00
Aparup Banerjee
3b1b5018f7
MDL-28135 general Updated broken and typo docs links
2011-07-05 14:41:29 +08:00
Eloy Lafuente (stronk7)
d466e23c38
MDL-28032 database - retrofit signed info for decimal/float (improves diffs detection)
2011-06-26 12:54:16 +02:00
Tim Hunt
cfcf9bb4e3
MDL-27897 moodle_database::get_in_or_equal must not use a static variable.
...
It makes unit testing impossible. Switch to a field.
2011-06-17 11:26:51 +01:00
Eloy Lafuente (stronk7)
86f456d8f0
MDL-27325 Adding some extreme, but 32bits safe, float tests
2011-05-06 16:07:17 +02:00
Eloy Lafuente (stronk7)
0c4c6d468a
MDL-27325 Now also testing update_record and set_field
2011-05-06 16:07:17 +02:00
Eloy Lafuente (stronk7)
7aa9e45f56
MDL-27325 mysql: Avoid some implicit casting from float to varchar/text
2011-05-06 16:07:17 +02:00
Tim Hunt
6531aff715
MDL-27325 New DB unit tests to demonstrate the problem.
2011-05-06 16:07:17 +02:00
Petr Skoda
c49bec382c
MDL-27148 fix unit tests to accept arbitrary named params format from get_in_or_equal
2011-04-14 15:12:33 +02:00
Petr Skoda
906c957b63
MDL-27148 use static counter instead of incrementing parameter name
2011-04-14 14:50:35 +02:00
Eloy Lafuente (stronk7)
c7ce62f9c8
MDL-26542 get_in_or_equal - adding $onemptyitems + tests
2011-03-30 18:22:53 +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
Eloy Lafuente (stronk7)
1f95c9a4af
Merge branch 'w12_MDL-26842_20_ociparams' of git://github.com/skodak/moodle
2011-03-21 17:55:40 +01:00
Petr Skoda
cd278cd454
MDL-26842 fix invalid parameter mix discovered by the new test
2011-03-21 17:19:36 +01:00
Eloy Lafuente (stronk7)
1997d9dc1d
Merge branch 'w12_MDL-26842_20_ociparams' of git://github.com/skodak/moodle
2011-03-21 16:38:19 +01:00
Petr Skoda
4c1638c10f
MDL-26842 fix o_ prefix regression
2011-03-21 16:32:09 +01:00
Eloy Lafuente (stronk7)
7a5852c857
Merge branch 'w12_MDL-26844_20_limittests' of git://github.com/skodak/moodle
2011-03-21 15:35:17 +01:00