MDL-17020 dml: native pgsql driver - fixing/improving unittests; fixed column names in indexes
This commit is contained in:
@@ -187,8 +187,10 @@ class pgsql_native_moodle_database extends moodle_database {
|
||||
if ($matches[4] === 'id') {
|
||||
continue;
|
||||
}
|
||||
$columns = explode(',', $matches[4]);
|
||||
$columns = array_map('trim', $columns);
|
||||
$indexes[$matches[2]] = array('unique'=>!empty($matches[1]),
|
||||
'columns'=>explode(',', $matches[4]));
|
||||
'columns'=>$columns);
|
||||
}
|
||||
pg_free_result($result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user