|
|
|
Until Moodle 2.0, the sql_substr() helper function (dmllib), is used without parameters at simply returns the "substring" function used for each DB.
Change this behaviour so it will look like:
$DB->sql_substr(string, from, len)
with len being optional.
- Implement it in new moodle_databases.
- Document it.
- Look for wrong usages in core.
- Add some tests, with and without len.
Ciao :-)
|
|
Description
|
Until Moodle 2.0, the sql_substr() helper function (dmllib), is used without parameters at simply returns the "substring" function used for each DB.
Change this behaviour so it will look like:
$DB->sql_substr(string, from, len)
with len being optional.
- Implement it in new moodle_databases.
- Document it.
- Look for wrong usages in core.
- Add some tests, with and without len.
Ciao :-) |
Show » |
committed 13 files to 'Moodle CVS' - 29/Oct/08 12:11 AM
MDL-16669 dml: improved sql_substring(), added unit tests
|
|
|
committed 5 files to 'Lang CVS' - 29/Oct/08 12:55 AM
MDL-16669 Translated a new string for debug.
MDL-16996 Translated new strings for error messages.
MDL-15352 Translated a new string for repository remote Moodle.
MDL-16975 Translated new strings for xmldb.
|
|
|
committed 1 file to 'Moodle CVS' - 29/Oct/08 02:57 AM
Missing parenthesis in sql_substr(). MDL-16669
|
|
|
martignoni committed 1 file to 'Lang CVS' - 16/Nov/08 05:36 AM
|