Fix failing test in postgres.

This commit is contained in:
mark_story 2016-10-05 22:28:51 -04:00
parent 689d516a99
commit 9c3b17cbc7

View file

@ -727,10 +727,11 @@ class Postgres extends DboSource {
* @return int An integer representing the length of the column
*/
public function length($real) {
$col = $real;
if (strpos($real, '(') !== false) {
list($real, $limit) = explode('(', $real);
list($col, $limit) = explode('(', $real);
}
if ($real === 'uuid') {
if ($col === 'uuid') {
return 36;
}
return parent::length($real);