Skip to content

Commit b93a4cf

Browse files
committed
Merge pull request #45 from rjmackay/3.3/develop
Add support for geometry field type in MySQL Refs #4745
2 parents 264e3a2 + 68985f2 commit b93a4cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

classes/Kohana/Database/MySQL.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ public function datatype($type)
240240
'fixed' => array('type' => 'float', 'exact' => TRUE),
241241
'fixed unsigned' => array('type' => 'float', 'exact' => TRUE, 'min' => '0'),
242242
'float unsigned' => array('type' => 'float', 'min' => '0'),
243+
'geometry' => array('type' => 'string', 'binary' => TRUE),
243244
'int unsigned' => array('type' => 'int', 'min' => '0', 'max' => '4294967295'),
244245
'integer unsigned' => array('type' => 'int', 'min' => '0', 'max' => '4294967295'),
245246
'longblob' => array('type' => 'string', 'binary' => TRUE, 'character_maximum_length' => '4294967295'),

0 commit comments

Comments
 (0)