Details
Description
JDBCTextFeatureWriter::makeUpdateSql(Feature, Feature) creates a wrong update statement, since it uses the toString() of the AttributeType as value instead of the value of that attribute on the feature:
if (attributes[i].isGeometry())
{ String geomName = attributes[i].getName(); int srid = ftInfo.getSRID(geomName); attrValue = getGeometryInsertText((Geometry) currAtt, srid); }else
{ attrValue = addQuotes(attributes[i]); //this is the wrong line }this ends up in a statement like: UPDATE <table> SET <attr> = 'DefaultAttributeType [name=id , type=class java.lang.String , nillable=true, min=1, max=1]....
Issue Links
- is duplicated by
-
GEOT-618
JDBCTextFeatureWriter corrupts data
-