1
0
Fork 0
mirror of synced 2025-04-03 13:23:37 +03:00

DataDict: Varchar/TEXT conversion bug fixed

This commit is contained in:
doctrine 2006-07-06 07:25:28 +00:00
parent 703ba51fab
commit 267bdfa2e8

View file

@ -61,15 +61,15 @@ class Doctrine_DataDict {
case "o": case "o":
case "string": case "string":
case "s": case "s":
if($length < 255) if($length <= 255)
return "C($length)"; return "C($length)";
elseif($length < 4000) elseif($length <= 4000)
return "X"; return "X";
else else
return "X2"; return "X2";
break; break;
case "mbstring": case "mbstring":
if($length < 255) if($length <= 255)
return "C2($length)"; return "C2($length)";
return "X2"; return "X2";