-
Improvement
-
Resolution: Fixed
-
Minor
-
3.2.4, 3.3.1, 3.4
-
Moodle on Windows, git with auto crlf set to on.
Oracle database
-
Oracle
-
MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
-
MOODLE_33_STABLE, MOODLE_34_STABLE
-
- Configure git to not automatically change line endings
- Copy a version of lib/dml/oci_native_moodle_package.sql from a release zip file before the initial installation on Oracle
-
Git can be configured to auto convert line endings of files in Moodle.
This is useful on Windows as:
- many editors default to using crlf, rather than just lf
- it ensures that the code put into repositories when submitting patches only contain Unix line endings
however with this configured to be on the lib/dml/oci_native_moodle_package.sql file also has it's line endings changed.
When there are Windows line endings in the file Moodle will not split it into it's separate queries correctly, which results in Moodle not creating the MOODLELIB package correctly on Oracle when it first connects.
It is possible to force the file to always have Unix line endings via the .gitattributes file file using:
lib/dml/oci_native_moodle_package.sql text eol=lf
|
This will ensure that the file will always function correctly no matter a user's git settings.
For reference see: https://help.github.com/articles/dealing-with-line-endings/
- has a non-specific relationship to
-
MDL-43176 enrol/meta slow database query
-
- Closed
-