MDL-29314 enforce index size limits

This commit is contained in:
Petr Skoda
2011-09-16 08:45:06 +02:00
parent 9cfaebbd0e
commit b2cfdcf697
4 changed files with 210 additions and 0 deletions
+3
View File
@@ -348,6 +348,9 @@ abstract class sql_generator {
* needed to create it (in array)
*/
public function getCreateIndexSQL($xmldb_table, $xmldb_index) {
if ($error = $xmldb_index->validateDefinition($xmldb_table)) {
throw new coding_exception($error);
}
$unique = '';
$suffix = 'ix';