src/Db/MySqlDb.php
public function getTableDef($tablename) {
        $table = parent::getTableDef($tablename);
        if ($table || $table === null) {
            return $table;
        }

        $ltablename = strtolower($tablename);
        $table = val($ltablename, $this->tables, []);
        if (!isset($table['columns'])) {
            $columns = $this->getColumns($tablename);
            if ($columns === null) {
                // A table with no columns does not exist.
                $this->tables[$ltablename] = ['name' => $tablename];
                return null;
            }

            $table['columns'] = $columns;
        }
        if (!isset($table['indexes'])) {
            $table['indexes'] = $this->getIndexes($tablename);
        }
        $table['name'] = $tablename;
        $this->tables[$ltablename] = $table;
        return $table;
    }
public function getTableDef($tablename) {
        $table = parent::getTableDef($tablename);
        if ($table || $table === null) {
            return $table;
        }

        $ltablename = strtolower($tablename);
        $table = val($ltablename, $this->tables, []);
        if (!isset($table['columns'])) {
            $columns = $this->getColumns($tablename);
            if ($columns === null) {
                // A table with no columns does not exist.
                $this->tables[$ltablename] = ['name' => $tablename];
                return null;
            }

            $table['columns'] = $columns;
        }
        if (!isset($table['indexes'])) {
            $table['indexes'] = $this->getIndexes($tablename);
        }
        $table['name'] = $tablename;
        $this->tables[$ltablename] = $table;
        return $table;
    }
{@inheritdoc}