Commit 267bdfa2 authored by doctrine's avatar doctrine

DataDict: Varchar/TEXT conversion bug fixed

parent 703ba51f
......@@ -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";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment