Petr Skoda
d533e6d7e3
MDL-23925 hopefully finalised unit tests for case and accent insensitive problems
2010-08-25 20:26:23 +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
5a9c25e8fc
MDL-23925 more unit tests that should help with diagnostics of collation issues; fixed utf-8 issues with first char of my nick
2010-08-25 10:14:47 +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
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
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
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
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
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
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
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
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
d578c19757
MDL-19057 No more exceptions in tests for oracle. If tests fail, MDL-20339 can be the culprit.
2009-09-24 13:51:41 +00:00
stronk7
cf874b2949
MDL-17491 dml tests4oracle empties/null/hack added.
2009-09-22 16:26:14 +00:00
stronk7
52a0162647
MDL-17491 oracle native driver: LOB handling near finished + some helper functions
2009-09-22 08:58:22 +00:00
stronk7
515cb65357
MDL-19057 added hack for oracle testing (random oci bug) and some missing close() statements.
2009-09-21 11:32:45 +00:00
stronk7
81f5be122b
s/DB tra/BD Tra/g
2009-09-09 16:35:17 +00:00
stronk7
167cbee855
couple tests for DBs not supporting transactions
2009-09-09 16:33:45 +00:00
stronk7
dd1611a5bd
Pair number of DML tests in all DB, no matter if regexp is supported or no
2009-09-09 13:21:08 +00:00
stronk7
38d0db9f31
Concatenating NULLs with anything returns NULL
2009-08-30 20:53:12 +00:00
stronk7
71a71d591b
Added more sql_concat tests. MySQL and PG broken :-( Fix coming soon.
2009-08-30 16:01:31 +00:00
skodak
e6c6531cce
MDL-19689 fixed strictness constants, thanks Tim
2009-07-04 09:30:59 +00:00
skodak
af12ea93ba
MDL-19689 new $strictness parameter in $DB->get_record() and $DB->get_field() family of DML methods
2009-07-03 22:38:56 +00:00
stronk7
d83bcdfcc7
Oops, I left some debugging info in my prev commit.
2009-06-23 08:24:50 +00:00
stronk7
16a2a41273
Fix one test failing depending of the debug/debugdisplay settings.
2009-06-23 00:24:52 +00:00
skodak
4992614541
MDL-19470 fixing DML license headers
2009-06-12 08:14:29 +00:00
stronk7
f9ecb1716d
MDL-18577 drop enums support - fixed dml/ddl tests to be runnable once enums are out. Some
...
are failing but will be fixed/completed soon by MDL-19057
2009-05-03 23:46:40 +00:00
tjhunt
edbc93a7e4
Remove failing unit tests. (We are going to remove enum support from the database layer anyway.)
2009-03-30 01:57:47 +00:00
stronk7
37d975e11f
Fix tests (missing declaration) and add tests for sql_length()
2009-02-15 23:43:34 +00:00
skodak
117679db37
MDL-17859 implemented caching in get_tables()
2009-01-12 18:10:50 +00:00
stronk7
c362878ed7
MDL-17645 delete_records_list - Tidied a bit return values. Fix behaviour when no values are passed + new dml tests for all *_list() functions.
2008-12-15 21:41:09 +00:00
skodak
66e75f8d51
MDL-17491 experimental native oracle driver - still bugy and incomplete, this will require more core changes, grrrrrr
2008-12-05 00:10:27 +00:00
skodak
9d833e931c
MDL-17522 improved dml tests, fixed use of reserved word "number"
2008-12-04 23:16:35 +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
e6df37346f
MDL-17408 DML: new sql_modulo() method + test
2008-11-26 08:19:45 +00:00
skodak
082ae8215e
MDL-15837 more dml unit tests
2008-11-22 19:32:16 +00:00
skodak
6ff835b79e
MDL-15837 improved dml unit testing
2008-11-22 16:48:34 +00:00
skodak
758ba89a63
MDL-17347 reintroduced duplicate tests in get_records_sql()
2008-11-21 22:35:21 +00:00
skodak
be415e95be
MDL-17354 moved reset_sequence into dbmanager
2008-11-21 21:40:50 +00:00
skodak
22d77567a9
MDL-17317 DML: Exceptions used by all drivers now :-) expect some more commits/cleanup soon
2008-11-21 20:09:13 +00:00
skodak
6e22a695d8
MDL-17129 dml: fixed dml exception handling in unit tests
2008-11-05 00:05:18 +00:00
skodak
655bbf511d
MDL-16669 dml: improved sql_substring(), added unit tests
2008-10-28 15:11:10 +00:00