Permalink
Browse files

to correctly return SET() type

  • Loading branch information...
busgurlu committed Sep 4, 2014
1 parent f82fd2d commit 996ad04b9586c12aa821f3f02e8d16b59b671eb2
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Cake/Model/Datasource/Database/Mysql.php
@@ -784,6 +784,9 @@ public function column($real) {
if (strpos($col, 'enum') !== false) {
return "enum($vals)";
}
+ if (strpos($col, 'set') !== false) {
+ return "set($vals)";
+ }
return 'text';
}

0 comments on commit 996ad04

Please sign in to comment.