Dan Poltawski
4afbd0c834
Merge branch 'w28_MDL-34159_m24_wherelist' of git://github.com/skodak/moodle
2012-07-10 12:52:14 +08:00
Dan Poltawski
b40eca11d9
Merge branch 'w28_MDL-33018_m24_pgindex2' of git://github.com/skodak/moodle
...
Conflicts:
lib/db/upgrade.php
version.php
2012-07-10 09:17:23 +08:00
Dan Poltawski
db296214d9
Merge branch 'w28_MDL-34010_m24_mysqldiag' of git://github.com/skodak/moodle
2012-07-10 08:49:22 +08:00
Petr Skoda
bd991d03cf
MDL-33018 add general index type hints and use PostgreSQL varchar_pattern_ops index type for context.path
...
This significantly improves performance of accesslib queries,
credit for the discovery of this solution goes to Andrew Masterton from OU.
2012-07-06 08:19:39 +02:00
Petr Skoda
63224dee44
MDL-33568 improve DB->count_records*()
...
Now always returns integer and invalid queries are detected.
2012-07-06 08:09:11 +02:00
Petr Škoda
3c2fbdbb87
MDL-34010 improve mysqli engine diagnostics performace
2012-07-06 08:01:33 +02:00
Michael Aherne
445be5c6cd
MDL-34010 Update diagnose() function to query information_schema.tables
2012-07-06 08:01:33 +02:00
Petr Škoda
7f22fb4dd9
MDL-34159 improve where_clause_list performance
2012-07-06 07:57:08 +02:00
Eloy Lafuente (stronk7)
c3fcad7d55
Merge branch 'MDL-34145' of git://github.com/timhunt/moodle
2012-07-05 03:40:44 +02:00
Eloy Lafuente (stronk7)
43a6a288b4
Merge branch 'mssql-case-sensitive' of git://github.com/danpoltawski/moodle
2012-07-02 21:05:08 +02:00
Tim Hunt
5415d91e20
MDL-34145 postgres driver: fix get_tables perf on <= 9.0
...
The query of the information_schema view seems to be painfully slow on
older versions of postgres (2000ms instead of 20ms). Therefore, it is
worth detecting that case, and using a more postgres specific feedback.
This is particularly important for 2.3+ unit tests.
Thanks to Petr Skoda for his help with this.
2012-07-02 16:19:00 +01:00
Petr Škoda
c56cdae977
MDL-34130 prevent some warning in PHPStorm
2012-07-01 21:50:36 +02:00
Petr Škoda
3b5f6e6c2a
MDL-34130 test recordset data is static
...
We do not want recordset results to be affected by subsequent update or delete queries.
2012-07-01 21:35:37 +02:00
Petr Škoda
4993d5fe00
MDL-34130 add missing rs close
...
Thanks Eloy!
2012-07-01 21:24:13 +02:00
Petr Škoda
e1defa2ed5
MDL-34130 test interaction of recordsets and transactions
2012-07-01 21:23:54 +02:00
Petr Škoda
541ca062f1
MDL-34130 test nested recordset iteration
2012-07-01 21:23:37 +02:00
Petr Škoda
401793a36d
MDL-34130 fix data inserts in recordset tests
2012-07-01 21:23:21 +02:00
Dan Poltawski
609541df30
MDL-34081 dml: mssql driver was using case insensitve sql
2012-06-30 18:56:57 +08:00
Petr Skoda
a6d9d4efc2
MDL-32003 fix PHP4-isms in core xmldb code
2012-06-17 22:56:29 +02:00
Petr Skoda
94417438b3
MDL-32003 fix phpdocs in xmldb abstraction
2012-06-17 22:56:28 +02:00
Petr Skoda
00902cd974
MDL-32003 fix phpdocs and use __DIR__ for includes in dml layer
...
DML layer is not supposed to use $CFG,
it is better to rely on __DIR__ in self-contained libs…
2012-06-17 22:56:28 +02:00
Eloy Lafuente (stronk7)
a3fa993212
MDL-33434 mssql: Improve handling of returned ids on insert.
...
This commit moves from the batch SCOPE_IDENTITY() way to return
the inserted ids to the OUTPUT alternative (supported and
recommended since 2005). Also the handling of possible return
values is improved, with all the alternatives leading to expected results.
2012-05-31 01:01:14 +02:00
Eloy Lafuente (stronk7)
cbdcdd4734
MDL-33434 dml: define expected results when unique constraint is violated on insert.
2012-05-31 01:00:07 +02:00
Aparup Banerjee
7ded1e29f9
Merge branch 'w20_MDL-32907_m23_like' of git://github.com/skodak/moodle
2012-05-17 14:47:44 +08:00
Dan Poltawski
5a0a64661c
Merge branch 'w20_MDL-32967_m23_sqlsrvstrings' of git://github.com/skodak/moodle
2012-05-17 14:30:30 +08:00
Petr Skoda
0739e690ee
MDL-32967 add diagnostic strings for missing Microsoft drivers for SQL Server
2012-05-13 12:21:04 +02:00
Petr Skoda
ed63f7f883
MDL-32907 prevent sql_like() backslash quoting problems in PostgreSQL
2012-05-12 16:40:11 +02:00
Tomasz Muras
04bfa67c41
MDL-32930 Add escaping for '_' character
2012-05-11 08:56:01 +02:00
Tomasz Muras
c92e462b04
MDL-32930 Improve the performance of get_tables
2012-05-10 23:35:18 +02:00
Petr Skoda
05d531a5fb
MDL-32569 drop old functional DB tests
2012-04-21 16:32:14 +02:00
Dan Poltawski
71504afc99
Merge branch 'w16_MDL-32392_m23_minversion' of git://github.com/skodak/moodle
2012-04-16 13:52:50 +08:00
Dan Poltawski
04b16edb6d
Merge branch 'w16_MDL-32434_m23_droptemp' of git://github.com/skodak/moodle
2012-04-16 13:40:32 +08:00
Dan Poltawski
85b0540605
Merge branch 'wip-MDL-32395-m23' of git://github.com/samhemelryk/moodle
2012-04-16 10:32:09 +08:00
Petr Skoda
54c5b1ad35
MDL32392 delete unused is_min_version() in some DB drivers
2012-04-15 19:40:07 +02:00
Petr Skoda
a66b2ae4f4
MDL-32434 deprecate drop_temp_table() in favour of drop_table()
2012-04-15 12:23:15 +02:00
Petr Skoda
8eaa21e195
MDL-32323 fix issues breaking phpunit tests for sqlsrv driver
2012-04-11 22:14:18 +02:00
Dan Poltawski
7a1ed64587
Merge branch 'w15_MDL-32323_m23_phpunit3' of git://github.com/skodak/moodle
2012-04-11 09:32:58 +08:00
Sam Hemelryk
9315a5fb59
MDL-32395 dml: Minor phpdoc fixes
2012-04-11 09:47:50 +12:00
Eloy Lafuente (stronk7)
97d00c9f51
MDL-32368 pgsql: bytea_output only available in 9.0 and upwards
2012-04-10 21:32:56 +02:00
Eloy Lafuente (stronk7)
7b74fb7071
MDL-32392 cleanup: adding @todo about unused is_min_version() method
2012-04-10 21:26:00 +02:00
Eloy Lafuente (stronk7)
7475638c2a
Merge branch 'w15_MDL-32368_m23_bytea' of git://github.com/skodak/moodle
2012-04-10 20:59:34 +02:00
Eloy Lafuente (stronk7)
7f3f024d48
MDL-32365 mssql and sqlsrv: introspect metainfo to look for identities
2012-04-10 20:24:05 +02:00
Eloy Lafuente (stronk7)
55edb9416b
MDL-32365 oracle: ensure table has 'before each row' trigger to
...
determine if the 'id' column is sequence based or no
2012-04-10 19:49:34 +02:00
Petr Skoda
7620602cc2
MDL-32323 improve transaction handling in PHPUnit test cases
2012-04-10 15:27:10 +02:00
Petr Skoda
4787e466d6
MDL-32323 make sure DDL libs are loaded before starting function db tests
2012-04-10 15:27:06 +02:00
Petr Skoda
d2b357b923
MDL-32368 fix pg to always use old bytea encoding
2012-04-10 15:25:20 +02:00
Petr Skoda
4bf855771f
MDL-32365 fix hardcoded auto-increment on id columns
2012-04-10 15:22:16 +02:00
Petr Skoda
3b4f7338a7
MDL-32365 fix invalid checking for returned id when custom sequence used
2012-04-10 15:22:15 +02:00
Petr Skoda
a3d5830a0a
MDL-32149 PHPUnit test support - part 2
...
Includes:
* constants refactoring
* reworked db table init
* support for $CFG->debug = -1
* functional DB tests
* fixed $DB->get_indexes() to not throw exceptions when table does not exist
* fix handling of user passwords in test db
* add debug info to exception messages
* removed unnecessary PHP debug errors from mathslib
* fixed @error suppression in get_string
* fixed PHPUnit error handler setup
* added timezone info to default install
2012-04-03 22:30:53 +02:00
Petr Skoda
caee6e6c26
MDL-32251 E_STRICT fixes part 3
2012-03-29 15:24:30 +02:00