georuby

Getting OCIError: ORA-00932: inconsistent datatypes From Rails 3

孤人 提交于 2020-01-01 19:00:51
问题 Here is the scenario. I'm writing my geo-ruby oracle adapter for Ruby On Rails which supports working with SDO_GEOMETRY out of box. It was going well. I wrote codes for selecting SDO_GEOMETRY objects from Oracle DB successfully. Everything ruins up when I wanted to write insert and update parts. Following is what's in my mind. I want to be able to do this statement: g = GeoShape.new(name:"point1", shape: Point.from_x_y(-34,-43,4326)) g.save I generated following sql query from the above

Getting OCIError: ORA-00932: inconsistent datatypes From Rails 3

怎甘沉沦 提交于 2019-12-04 17:07:09
Here is the scenario. I'm writing my geo-ruby oracle adapter for Ruby On Rails which supports working with SDO_GEOMETRY out of box. It was going well. I wrote codes for selecting SDO_GEOMETRY objects from Oracle DB successfully. Everything ruins up when I wanted to write insert and update parts. Following is what's in my mind. I want to be able to do this statement: g = GeoShape.new(name:"point1", shape: Point.from_x_y(-34,-43,4326)) g.save I generated following sql query from the above statements: INSERT INTO "GEO_SHAPES" ("CREATED_AT", "ID", "NAME", "SHAPE", "UPDATED_AT") VALUES (:a1, :a2,