I'm trying to insert data from one table to another, but I keep getting a weird SQL error. The following is my query along with the error.
insert into hs.hs (`field1`,`field2`,`field3`) select cid,sid,'1' from `tmp1`;
now the error
1416 - Cannot get geometry object from data you send to the GEOMETRY field.
I don't understand why I'm getting a geometry error there is no geometry involved at all.
By the way my MySQL version is:
SELECT VERSION(); Result 5.7.16-log
I'm pretty sure I'm doing everything right; Can some one please tell me what I'm doing wrong? Could this be a bug?
Thanks I'm looking forward to some help.
field1,field2,field3) select cid , sid, '1' fromtmp1;SHOW CREAtE TABLE hsandSHOW CREATE TABLE tmp1