我有一个表在MySQL 5.1以下模式:代码点火器的活动记录 - 插入到柱点
Venue (id, name, location)
其中位置是Point类型的。 我试图用笨2.0活动记录插入一个新的记录:
$row = array("id" => $id, "name" => $name, "location" =>
"GeomFromText('POINT(1 1)')");
$this->db->insert('Venues', $row);
,但我得到了以下错误:
Cannot get geometry object from data you send to the GEOMETRY field
尝试呼应查询正在使用$ this-> db-> last_query()运行; – Sukumar