5
+---------+---------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------+---------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| user_id | int(11) | NO | UNI | NULL | |
| utm | point | NO | MUL | NULL | |
+---------+---------+------+-----+---------+----------------+
insert into life(user_id, utm) values(99,point(4,4));
ERROR 1416 (22003): Cannot get geometry object from data you send to the GEOMETRY field
Secondo http://bit.ly/9r97o5, questo è necessaria solo su versioni di MySQL prima 5.1.35. A partire dalla versione 5.1.35, è possibile inserire direttamente il valore di ritorno da Point(). –
I nomi delle funzioni sono case sensitive in mySQL? –
Intendevi MySQL? : D – huff