DataDict: Varchar/TEXT conversion bug fixed
This commit is contained in:
parent
703ba51fab
commit
267bdfa2e8
@ -61,15 +61,15 @@ class Doctrine_DataDict {
|
||||
case "o":
|
||||
case "string":
|
||||
case "s":
|
||||
if($length < 255)
|
||||
if($length <= 255)
|
||||
return "C($length)";
|
||||
elseif($length < 4000)
|
||||
elseif($length <= 4000)
|
||||
return "X";
|
||||
else
|
||||
return "X2";
|
||||
break;
|
||||
case "mbstring":
|
||||
if($length < 255)
|
||||
if($length <= 255)
|
||||
return "C2($length)";
|
||||
|
||||
return "X2";
|
||||
|
Loading…
x
Reference in New Issue
Block a user