mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Fix typo.
This commit is contained in:
parent
3a185f9713
commit
689d516a99
1 changed files with 3 additions and 3 deletions
|
@ -727,10 +727,10 @@ class Postgres extends DboSource {
|
|||
* @return int An integer representing the length of the column
|
||||
*/
|
||||
public function length($real) {
|
||||
if (strpos($col, '(') !== false) {
|
||||
list($col, $limit) = explode('(', $col);
|
||||
if (strpos($real, '(') !== false) {
|
||||
list($real, $limit) = explode('(', $real);
|
||||
}
|
||||
if ($col === 'uuid') {
|
||||
if ($real === 'uuid') {
|
||||
return 36;
|
||||
}
|
||||
return parent::length($real);
|
||||
|
|
Loading…
Add table
Reference in a new issue