Petr Škoda
74d458916b
MDL-40676 ignore null bytes
2013-09-02 12:28:15 +08:00
Simon Coggins
a6bc89e4d2
MDL-39572: Fix sql_order_by_text() to use length argument correctly
2013-08-16 11:28:47 +12:00
Simon Coggins
f6868f9c9d
MDL-39572: Fix existing tests and add more to demonstrate issue with sql_order_by_text()
2013-08-16 11:28:46 +12:00
Dan Poltawski
1edad3fd90
Merge branch 'w27_MDL-40399_m24_msarrayshift' of https://github.com/skodak/moodle into MOODLE_24_STABLE
2013-07-02 13:33:49 +08:00
Petr Škoda
1596dca3d0
MDL-40266 improve emulate_bound_params() for mssql driver
...
Looping over large numbers of items with array_shift() is expensive.
Reverse the array and fetch items from the top of the pile.
Credit goes to Martin Langhoff for original mysqli fix.
2013-07-01 08:53:28 +02:00
Petr Škoda
ba8a53a4f9
MDL-40266 improve emulate_bound_params() for sqlsrv driver
...
Looping over large numbers of items with array_shift() is expensive.
Reverse the array and fetch items from the top of the pile.
Credit goes to Martin Langhoff for original mysqli fix.
2013-07-01 08:53:27 +02:00
Martin Langhoff
2122af37b6
MDL-40266 improve emulate_bound_params() for mysqli
...
Looping over large numbers of items with array_shift() is expensive.
Reverse the array and fetch items from the top of the pile.
2013-06-30 18:40:18 +02:00
Eloy Lafuente (stronk7)
f530a1f868
MDL-27071 Add big IN() unit tests
...
Let's verify how all databases perform with a big
number of parameters (10000) using IN() SQL clauses.
Both using QM and NAMED parameters.
Ideally only Oracle fails, and only it will need fixing.
2013-04-29 01:53:41 +02:00
Eloy Lafuente (stronk7)
0f987021a3
MDL-27071 Allow Oracle IN() to use > 1000 items
...
By using a pivoting strategy, we modify the list
of params (QM and NAMED supported) into a
subquery, so the 1000 limit in Oracle (ORA-01795)
is not thrown anymore.
Conflicts:
lib/dml/oci_native_moodle_database.php
2013-04-29 01:53:01 +02:00
Petr Škoda
cfbdf4d2a0
MDL-39028 fix sqlsrv concat type conversion
2013-04-09 02:18:34 +02:00
Petr Škoda
239fb7ac41
MDL-39024 fix MSSQL seek past the end of recordset
2013-04-09 01:59:43 +02:00
Petr Škoda
0816f853fa
MDL-39022 fix MSSQL concat type conversion
2013-04-09 01:56:48 +02:00
Eloy Lafuente (stronk7)
b626992e09
Merge branch 'MDL-37854_m24' of https://github.com/markn86/moodle into MOODLE_24_STABLE
2013-02-05 11:19:30 +01:00
Mark Nelson
e0d4f2b66c
MDL-37854 phpunit: replaced occurrence of non-existent function assertFail
2013-02-05 18:03:58 +08:00
Petr Škoda
674e0a210d
MDL-37734 add one more recordset isolation test
2013-01-29 10:18:54 +01:00
Petr Škoda
e63aff8479
MDL-37734 use prefetching workaround for MARS transaction problems
2013-01-29 10:18:41 +01:00
Eloy Lafuente (stronk7)
9b7b6fa33c
MDL-37420 rework pg schema (partial backport of 92b00c3)
2013-01-11 10:33:33 +01:00
Petr Škoda
543fc34ed9
MDL-37420 add support for more PostgreSQL schemas
2013-01-08 17:35:51 +01:00
Dan Poltawski
fac9ba991b
Merge branch 'w49_MDL-36983_m24_ordertext' of git://github.com/skodak/moodle into MOODLE_24_STABLE
2012-12-11 12:09:34 +08:00
Petr Škoda
f48902e139
MDL-29442 add missing utf-8 to entity html encoding and decoding
2012-12-09 18:22:16 +01:00
Petr Škoda
4682fc7c38
MDL-36983 fix incorrect test method name
...
Credit goes to David Scotson, thanks.
2012-12-06 15:32:46 +01:00
Petr Škoda
bef1207302
MDL-36211 prevent session problems in installer
2012-11-21 08:34:28 +01:00
Petr Škoda
46a86dbbc2
MDL-36211 do not lock sessions for guests and not-logged-in users
2012-11-17 10:42:47 +01:00
Dan Poltawski
92c99211af
MDL-25290 MUC - add dbname to settings hash
2012-11-01 10:41:18 +08:00
Sam Hemelryk
9381983e5b
MDL-25290 conversion: Added db column cache to pgsql + mysql
2012-10-19 08:08:59 +08:00
Petr Škoda
633f324896
MDL-35691 fix bogus mysql integer size detection
2012-10-10 10:33:18 +02:00
Petr Škoda
bc5a5527e5
MDL-35691 add unit tests for the fixed integer column length info
2012-10-06 10:07:48 +02:00
Petr Škoda
3c17c85ae6
MDL-35691 fix max length calculation in pg, mysql and our bigint checker
2012-10-06 10:07:48 +02:00
Eloy Lafuente (stronk7)
8e4f6bb1d4
MDL-34657 test: verify CASE statements in ORDER BY clauses.
2012-09-27 12:41:41 +01:00
Petr Škoda
d719d59f25
MDL-35506 add more transaction error tests
2012-09-26 10:51:03 +02:00
Petr Škoda
bedd0982e8
MDL-35506 improve pg transaction snapshotting perf
2012-09-26 10:39:28 +02:00
Petr Škoda
8005d4eedf
MDL-35506 add pgsql workaround for automatic transaction rollback on any SQL error
2012-09-21 10:52:53 +02:00
Petr Škoda
ee70cee844
MDL-35506 test if error in transaction forces rollback
2012-09-20 10:29:12 +02:00
Eloy Lafuente (stronk7)
742b6984fc
Merge branch 'w38_MDL-35129_m24_dbmigration' of git://github.com/skodak/moodle
2012-09-18 01:12:17 +02:00
Petr Škoda
eb10d5541e
MDL-35479 use new debugging asserts in dml tests
2012-09-17 11:28:56 +02:00
Petr Škoda
cabc411215
MDL-35129 implement new export_table_recordset()
...
This is necessary because MySQL get_recordset_sql() stores the data in memory, unfortunately the alternative resultset iteration blocks concurrent access - that is why we need new method for export.
2012-09-15 11:29:33 +02:00
Petr Škoda
a197c413c5
MDL-34441 prevent mysqli::close() notice after failed mysql driver connect
2012-07-22 15:38:03 +02:00
Petr Škoda
1eece17648
MDL-34271 use the same collation when adding new tables or columns
2012-07-12 14:39:36 +02:00
Petr Škoda
ed047dabc9
MDL-34271 cleanup mysql engine hack before adding similar collation hack
2012-07-12 14:39:36 +02:00
Dan Poltawski
f5d7fe4c9e
MDL-34159 - add comment lost from previous commit
2012-07-10 12:59:06 +08:00
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