Ticket #112 (new enhancement)

Opened 2 years ago

Last modified 1 month ago

Spatial Datatypes for reactor.data.mysql.objectDAO

Reported by: jclausen Owned by: dhughes
Type: enhancement Priority: normal
Milestone: 1.0 Release Component: Reactor - DBMS Interfaces
Version: Severity: normal
Keywords: spam Cc:

Description

When Reactor encounters columns with spatial datatypes in MySQL 5, it throws the following error message:
"Unsupported (or incorrectly supported) database datatype"

in reactor.data.mysql.objectDAO

Problem:
This prevents reactor from accessing any table with columns which contains spatial information in WKB (well-known-binary) or dbms-native geometry formats.

Solution:
The following cfcase's should be added in reactor.data.mysql.objectDAO in the to allow for spatial datatypes:

Add to method getCfSqlType():

<!--- MySQL 5 Spatial datatypes --->
<cfcase value="geometry,point,linestring,polygon,multilinestring,multipoint,multipolygon,geometrycollection">
  <cfreturn "cf_sql_blob" />
</cfcase>

Add to method getCfDataType():

<!--- MySQL 5 Spatial Datatypes --->
<cfcase value="geometry,point,linestring,polygon,multilinestring,multipoint,multipolygon,geometrycollection">
  <cfreturn "binary" />
</cfcase>

Note: MySQL 4.1 also supports these datatypes, but these changes have not been tested with that version.

Change History

Changed 1 month ago by mark.drew@…

  • milestone set to 1.0 Release

Changed 1 month ago by TomChiverton

  • keywords spam added
Note: See TracTickets for help on using tickets.