lmscloud-io / mdlcode-docs

5 stars 3 forks source link

Report problems when reserved words are used as table/column/index names #7

Closed lmscloud-io closed 5 months ago

lmscloud-io commented 6 months ago

Moodle does not warn anybody when a reserved word is used as a column/table/index name. It is easy for a plugin developer to miss it because the word used for a column name may seem perfectly fine and work in their database but it will throw exception if somebody uses this plugin in another db.

It should be easy for MDLCode to parse the getReservedWords() functions in each db generator and report problems if any of these words are used in install.xml

lmscloud-io commented 5 months ago

This is implemented in 1.0.33 - released today