MDL-17020 dml: native pgsql driver - fixing/improving unittests; fixed column names in indexes

This commit is contained in:
skodak
2008-10-27 12:33:09 +00:00
parent 334ce0266d
commit 80ffbad34b
2 changed files with 21 additions and 11 deletions
+3 -1
View File
@@ -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);
}