Commit 267bdfa2 authored by doctrine's avatar doctrine

DataDict: Varchar/TEXT conversion bug fixed

parent 703ba51f
...@@ -61,15 +61,15 @@ class Doctrine_DataDict { ...@@ -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";
......
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