Hello -

I have a spatially enabled MySQL table with a POINT column storing my 
geometries.

In order to add a spatial index, the geometry column must be NOT NULL. 
 However, MySQL does not seem to allow setting DEFAULT values for geometry 
columns, so I am in a position where I cannot have an index and insert new 
rows, as Sequel does not support any spatial data types.

I am considering dropping the index before insert, then run an UPDATE 
statement to convert WKT spatial data into MySQL spatial data, then put the 
index back on...which is obviously bit convoluted.  Alternatively I could 
just send a CREATE statement via Sequel, but this loses much of the ORM 
advantage of using Sequel in the first place!

Has anyone worked around this sort of situation before?  

Cheers,

kez

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sequel-talk/-/yxZ_PN2jWhgJ.
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.com/group/sequel-talk?hl=en.

Reply via email to