mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +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
|
* @return int An integer representing the length of the column
|
||||||
*/
|
*/
|
||||||
public function length($real) {
|
public function length($real) {
|
||||||
if (strpos($col, '(') !== false) {
|
if (strpos($real, '(') !== false) {
|
||||||
list($col, $limit) = explode('(', $col);
|
list($real, $limit) = explode('(', $real);
|
||||||
}
|
}
|
||||||
if ($col === 'uuid') {
|
if ($real === 'uuid') {
|
||||||
return 36;
|
return 36;
|
||||||
}
|
}
|
||||||
return parent::length($real);
|
return parent::length($real);
|
||||||
|
|
Loading…
Add table
Reference in a new issue