Index: InsertCommand.cpp
===================================================================
--- InsertCommand.cpp	(revision 3180)
+++ InsertCommand.cpp	(working copy)
@@ -170,9 +170,19 @@
         }
         else
         {
-            FdoPtr<FdoValueExpression> expr(propVal->GetValue());
-            expr->Process(expProc);
-            values += sep + expProc->ReleaseBuffer();
+            FdoPtr<FdoGeometryValue> geom =
+                dynamic_cast<FdoGeometryValue*>(propVal->GetValue());
+            if ( geom )
+            {
+                // Add the value in the form "GeomFromText('<wkt_geometry>')"
+                values += sep + static_cast<char const*>(FdoStringP(geom->ToString()));
+            }
+            else
+            {
+                FdoPtr<FdoValueExpression> expr(propVal->GetValue());
+                expr->Process(expProc);
+                values += sep + expProc->ReleaseBuffer();
+            }
         }
         sep = ",";
     }

