Author: romanb
Date: 2008-08-26 21:02:32 +0100 (Tue, 26 Aug 2008)
New Revision: 4815

Modified:
   branches/1.0/lib/Doctrine/DataDict/Mysql.php
Log:
Fixed #1291. Patch applied.

Modified: branches/1.0/lib/Doctrine/DataDict/Mysql.php
===================================================================
--- branches/1.0/lib/Doctrine/DataDict/Mysql.php        2008-08-26 15:25:29 UTC 
(rev 4814)
+++ branches/1.0/lib/Doctrine/DataDict/Mysql.php        2008-08-26 20:02:32 UTC 
(rev 4815)
@@ -384,6 +384,17 @@
             case 'bit':
                 $type[] = 'bit';
             break;
+            case 'geometry':
+            case 'geometrycollection':
+            case 'point':
+            case 'multipoint':
+            case 'linestring':
+            case 'multilinestring':
+            case 'polygon':
+            case 'multipolygon':
+                $type[] = 'blob';
+                $length = null;
+            break;             
             default:
                 throw new Doctrine_DataDict_Exception('unknown database 
attribute type: ' . $dbType);
         }
@@ -478,4 +489,4 @@
         return $name . ' ' . $this->getNativeDeclaration($field) . $unsigned 
             . $default . $notnull . $autoinc . $comment;
     }
-}
\ No newline at end of file
+}


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to