Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-34211' of git://github.com/appalachianstate/moodle …

…into MOODLE_23_STABLE
  • Loading branch information...
commit d835681e355ab56ead290d9e334abf3c09af64cc 2 parents 4da2214 + eab8660
@danpoltawski danpoltawski authored
Showing with 2 additions and 6 deletions.
  1. +2 −6 lib/ddl/mysql_sql_generator.php
View
8 lib/ddl/mysql_sql_generator.php
@@ -364,18 +364,14 @@ function getCommentSQL ($xmldb_table) {
*/
public function isNameInUse($object_name, $type, $table_name) {
- // Calculate the real table name
- $xmldb_table = new xmldb_table($table_name);
- $tname = $this->getTableName($xmldb_table);
-
switch($type) {
case 'ix':
case 'uix':
// First of all, check table exists
$metatables = $this->mdb->get_tables();
- if (isset($metatables[$tname])) {
+ if (isset($metatables[$table_name])) {
// Fetch all the indexes in the table
- if ($indexes = $this->mdb->get_indexes($tname)) {
+ if ($indexes = $this->mdb->get_indexes($table_name)) {
// Look for existing index in array
if (isset($indexes[$object_name])) {
return true;
Please sign in to comment.
Something went wrong with that request. Please try again.