522 Commits

Author SHA1 Message Date
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
39cf0e8e74 MDL-24863 unit tests - tidy up a bit some tests 2010-11-18 14:02:02 +00:00
Petr Skoda
9ecf4f44e4 fixing regression in the last commit 2010-11-18 06:26:27 +00:00
Aparup Banerjee
011bfd2a54 database MDL-24863
- added restricting text conditions to where_clause , it throws a dml_exception when detected.
- also added to where_clause throwing dml_exception for field that doesn't exist in table.
- added unit tests for text condition restricting.
- added 2 unit tests for set_field_select() testing 'auto-casting params to int problem' fix
2010-11-18 06:00:51 +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
a018adf038 MDL-25276 dml - completed sql_cast_char2int/real tests to reveal some problems 2010-11-18 01:10:41 +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
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
Eloy Lafuente
5d31799af8 MDL-24397 dml - added some tests for limits with subqueries 2010-10-28 10:53:55 +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
422b75a712 mysql comparison weirdness finally detected 2010-10-04 08:21:53 +00:00
Petr Skoda
e5d1410b23 enhanced int comparison test 2010-10-04 08:12:28 +00:00
Petr Skoda
4e6e2a51f6 adding a test that should detect problems with string x int comparison 2010-10-04 08:00:45 +00:00
Petr Skoda
cda6d44b1b pg 9.0 note 2010-09-21 22:27:49 +00:00
Petr Skoda
ac6f1a82f9 MDL-24321 switching to stdClass 2010-09-21 07:57:42 +00:00
Petr Skoda
4e9996127a new test for diagnosing of Postgresql 9.0 problems with BLOBS 2010-09-20 21:59:34 +00:00
Petr Skoda
b6265b7e37 fixing silyl property_exists() conversion + coding style 2010-09-17 20:32:34 +00:00
Petr Skoda
d68c56f2c6 coding style fix 2010-09-17 20:25:33 +00:00
Petr Skoda
40504474ae fixed duplicate id detection in get_records_sql() 2010-09-17 20:25:02 +00:00
Petr Skoda
440f65ebdb fixed property_exists 2010-09-17 20:23:29 +00:00
Petr Skoda
27323c97ab MDL-19057 more tests for unlikely id reuse 2010-09-16 07:38:36 +00:00
Petr Skoda
d87b5a5da0 MDL-17491 fixed notice typo 2010-09-14 21:13:33 +00:00
Petr Skoda
2eff97b726 MDL-17491 removing unused password workaround, adding note that some special chars are discouraged in oracle db passwords 2010-09-14 21:13:03 +00:00
Petr Skoda
bd3e0b205d MDL-17491 oracler driver diagnostics - tells admins to install PL/SQL packages 2010-09-14 20:59:46 +00:00
Petr Skoda
b968cf3501 MDL-19057 simplified fake conditions, no need to bind params here 2010-09-14 19:19:30 +00:00
Petr Skoda
4a8b5434e5 MDL-19057 fixed incorrect use of conditions 2010-09-14 19:17:56 +00:00
Petr Skoda
ebb8d35846 MDL-19057 fixed param test 2010-09-14 18:45:58 +00:00
Petr Skoda
fd31089c76 MDL-24192 fixed null default value in text fields in sqlsrv driver too 2010-09-14 15:40:43 +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
5c8efdc4b1 MDL-24192 fixed incorrect raw inserts in sqlsrv driver too 2010-09-14 15:32:22 +00:00
Petr Skoda
97dbac93fd MDL-24192 fixed incorrect raw inserts 2010-09-14 15:30:02 +00:00
Petr Skoda
ebdf7f7e4d MDL-19057 refactored code used for detection of debug output 2010-09-13 18:55:41 +00:00
Petr Skoda
969cb35fdf MDL-19057 import_record() tests completed 2010-09-13 18:32:47 +00:00
Petr Skoda
992c19a7a6 MDL-24116 removing old xmldb test suite, all tests are now in DB function tests - improved coding style 2010-09-13 18:32:02 +00:00
Petr Skoda
f3e317dceb MDL-19057 blobs now supported in pgsql's import_record() 2010-09-13 18:31:21 +00:00
Petr Skoda
258a66dcce MDL-19057 fixed incorrect array_shift 2010-09-13 09:16:38 +00:00
Petr Skoda
3da04607e1 MDL-19057 improved bit operations in oracle, new sql package setup code - all credit goes to Eloy Lafuente; installation instructions and diagnostics to be added later 2010-09-13 09:09:58 +00:00
Petr Skoda
e586aa397e MDL-19057 improved bit operation tests - now testing placeholders too 2010-09-13 09:05:46 +00:00
Petr Skoda
c72b9900ed MDL-19057 improved bitand tests 2010-09-13 08:53:17 +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
a189ac81ae MDL-19057 improved delete_records() test 2010-09-13 08:35:24 +00:00
Petr Skoda
4a79777cdd MDL-19057 add comment to test tables so that ppl know they can be safely dropped 2010-09-07 08:58:05 +00:00
Petr Skoda
463776cacc MDL-19057 simplified test table management 2010-09-07 08:48:09 +00:00
Petr Skoda
98cf713bd4 MDL-19057 better use similar table names for each DML test - this helps with cleanup of leftovers 2010-09-07 08:37:39 +00:00
Petr Skoda
8170809d52 MDL-19057 fixed debug regression, going to refactor this into new methods soon 2010-09-07 07:56:27 +00:00
Petr Skoda
5ab41c2758 MDL-19057 improved test_update_record_raw() 2010-09-06 19:55:49 +00:00
Petr Skoda
8ca7b3dfb1 MDL-19057 more insert and import record improvements 2010-09-06 19:45:03 +00:00