[fdo-commits] r712 -
trunk/Providers/GenericRdbms/Src/UnitTest/Common
svn_fdo at osgeo.org
svn_fdo at osgeo.org
Mon Jan 29 15:25:51 EST 2007
Author: gavincramer
Date: 2007-01-29 15:25:50 -0500 (Mon, 29 Jan 2007)
New Revision: 712
Modified:
trunk/Providers/GenericRdbms/Src/UnitTest/Common/GeometryTests.cpp
Log:
Port Geometry unit test fix from 3.2.x to trunk
Modified: trunk/Providers/GenericRdbms/Src/UnitTest/Common/GeometryTests.cpp
===================================================================
--- trunk/Providers/GenericRdbms/Src/UnitTest/Common/GeometryTests.cpp 2007-01-29 20:22:02 UTC (rev 711)
+++ trunk/Providers/GenericRdbms/Src/UnitTest/Common/GeometryTests.cpp 2007-01-29 20:25:50 UTC (rev 712)
@@ -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