1
0
mirror of synced 2025-01-18 06:21:40 +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 "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";