[fdo-commits] r696 - branches/3.2.x/Providers/GenericRdbms/Src/UnitTest/Common

svn_fdo at osgeo.org svn_fdo at osgeo.org
Sat Jan 27 16:06:04 EST 2007


Author: gavincramer
Date: 2007-01-27 16:06:04 -0500 (Sat, 27 Jan 2007)
New Revision: 696

Modified:
   branches/3.2.x/Providers/GenericRdbms/Src/UnitTest/Common/GeometryTests.cpp
Log:
Fix unit test.

Modified: branches/3.2.x/Providers/GenericRdbms/Src/UnitTest/Common/GeometryTests.cpp
===================================================================
--- branches/3.2.x/Providers/GenericRdbms/Src/UnitTest/Common/GeometryTests.cpp	2007-01-26 22:29:38 UTC (rev 695)
+++ branches/3.2.x/Providers/GenericRdbms/Src/UnitTest/Common/GeometryTests.cpp	2007-01-27 21:06:04 UTC (rev 696)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2004-2006  Autodesk, Inc.
+ * Copyright (C) 2004-2007  Autodesk, Inc.
  * 
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of version 2.1 of the GNU Lesser
@@ -265,7 +265,7 @@
             if ((RDBI_END_OF_FETCH != rc) && (0 != rows))
             {
                 q = get_geometry_text (answer);
-                panswer = answer;
+                panswer = FDO_SAFE_ADDREF(answer);
                 CPPUNIT_ASSERT_MESSAGE ("fetched value incorrect", 0 == strcmp (p, q));
                 delete[] q;
                 count++;
@@ -370,7 +370,7 @@
             if ((RDBI_END_OF_FETCH != rc) && (0 != rows))
             {
                 q = get_geometry_text (answer);
-                panswer = answer;
+                panswer = FDO_SAFE_ADDREF(answer);
                 CPPUNIT_ASSERT_MESSAGE ("fetched value incorrect", 0 == strcmp (p, q));
                 delete[] q;
                 count++;



More information about the fdo-commits mailing list