From 5f0b855632409e53f5543bf1f3dd33a6a1581805 Mon Sep 17 00:00:00 2001 From: nate Date: Sun, 21 Oct 2007 03:42:57 +0000 Subject: [PATCH] Adding 'binary' column support to MySQL (Ticket #1757) git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5826 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/model/datasources/dbo/dbo_mysql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/model/datasources/dbo/dbo_mysql.php b/cake/libs/model/datasources/dbo/dbo_mysql.php index a4a076344..2fff53b22 100644 --- a/cake/libs/model/datasources/dbo/dbo_mysql.php +++ b/cake/libs/model/datasources/dbo/dbo_mysql.php @@ -361,7 +361,7 @@ class DboMysql extends DboSource { if (strpos($col, 'text') !== false) { return 'text'; } - if (strpos($col, 'blob') !== false) { + if (strpos($col, 'blob') !== false || $col == 'binary') { return 'binary'; } if (in_array($col, array('float', 'double', 'decimal'))) {