moodle/lib/dml
Eloy Lafuente (stronk7) 5d98ba68f5 MDL-35155 database: better sql_substr() impl. for mssql/sqlsrv + unit tests
MSSQL's substring() implementation is somehow silly/strict and unable to
perform implicit casts to integer both for the start and length parameters.

This hits Moodle badly because of another problems (MDL-23997) we decided
to cast to string all bound placeholders long ago.

So this commit just enforces the cast of the start and length parameters to
integer. And includes unit tests for using placeholders on all positions in
the sql_substr() method.
2015-01-15 08:32:38 +00:00
..
tests MDL-35155 database: better sql_substr() impl. for mssql/sqlsrv + unit tests 2015-01-15 08:32:38 +00:00
database_column_info.php MDL-32003 fix phpdocs and use __DIR__ for includes in dml layer 2012-06-17 22:56:28 +02:00
mariadb_native_moodle_database.php MDL-45070 relax the mariaDB version checker to work with long Ubuntu versions 2014-04-14 09:44:45 +08:00
moodle_database.php Merge branch 'wip_MDL-48083_m28_rollback' of git://github.com/skodak/moodle 2014-11-06 11:42:10 +08:00
moodle_recordset.php MDL-32003 fix phpdocs and use __DIR__ for includes in dml layer 2012-06-17 22:56:28 +02:00
moodle_temptables.php MDL-39725 database: Add statistics collection functions 2013-12-10 20:31:47 +11:00
moodle_transaction.php MDL-32003 fix phpdocs and use __DIR__ for includes in dml layer 2012-06-17 22:56:28 +02:00
mssql_native_moodle_database.php MDL-35155 database: better sql_substr() impl. for mssql/sqlsrv + unit tests 2015-01-15 08:32:38 +00:00
mssql_native_moodle_recordset.php MDL-39019 make sure MSSQL does not return non-string data types 2013-04-08 10:06:55 +02:00
mssql_native_moodle_temptables.php MDL-32003 fix phpdocs and use __DIR__ for includes in dml layer 2012-06-17 22:56:28 +02:00
mysqli_native_moodle_database.php MDL-47584 database SQL: add debug info on connection error notices 2014-10-29 16:59:56 +08:00
mysqli_native_moodle_recordset.php MDL-37718 release low level recordsets as soon as possible 2013-01-26 17:20:43 +01:00
mysqli_native_moodle_temptables.php MDL-32003 fix phpdocs and use __DIR__ for includes in dml layer 2012-06-17 22:56:28 +02:00
oci_native_moodle_database.php MDL-47874 dml: add support for replace_all_text to oracle 2014-11-02 18:26:18 +01:00
oci_native_moodle_package.sql Merge branch 'w14_MDL-38750_m25_ocierrors' of git://github.com/skodak/moodle 2013-04-09 02:26:49 +02:00
oci_native_moodle_recordset.php MDL-37718 release low level recordsets as soon as possible 2013-01-26 17:20:43 +01:00
oci_native_moodle_temptables.php MDL-32003 fix phpdocs and use __DIR__ for includes in dml layer 2012-06-17 22:56:28 +02:00
pdo_moodle_database.php MDL-43761 refactor db manager code to send arrays of SQL to the dml driver 2014-01-24 13:45:07 +08:00
pdo_moodle_recordset.php MDL-32003 fix phpdocs and use __DIR__ for includes in dml layer 2012-06-17 22:56:28 +02:00
pgsql_native_moodle_database.php MDL-45618 Fix @since PHPdoc tags. 2014-05-19 17:03:04 +01:00
pgsql_native_moodle_recordset.php MDL-37718 release low level recordsets as soon as possible 2013-01-26 17:20:43 +01:00
pgsql_native_moodle_temptables.php MDL-39725 database: Add statistics collection functions 2013-12-10 20:31:47 +11:00
sqlite3_pdo_moodle_database.php MDL-43884 database: Fix get_tables() api for external stores 2014-01-28 16:28:57 +08:00
sqlsrv_native_moodle_database.php MDL-35155 database: better sql_substr() impl. for mssql/sqlsrv + unit tests 2015-01-15 08:32:38 +00:00
sqlsrv_native_moodle_recordset.php MDL-39027 make sure sqlsrv does not return non-string data types 2013-04-08 23:29:52 +02:00
sqlsrv_native_moodle_temptables.php MDL-32003 fix phpdocs and use __DIR__ for includes in dml layer 2012-06-17 22:56:28 +02:00