[fdo-commits] r782 - in branches/3.2.x/Utilities/SchemaMgr/Src/Sm: Lp Ph

svn_fdo at osgeo.org svn_fdo at osgeo.org
Thu Feb 15 15:00:00 EST 2007


Author: brentrobinson
Date: 2007-02-15 15:00:00 -0500 (Thu, 15 Feb 2007)
New Revision: 782

Modified:
   branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp
   branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Ph/Table.cpp
Log:
View support - memory leak fixes.

Modified: branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp
===================================================================
--- branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp	2007-02-15 18:59:16 UTC (rev 781)
+++ branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp	2007-02-15 20:00:00 UTC (rev 782)
@@ -1853,7 +1853,7 @@
                 // other classes derived from it. 
                 if ( (Get_TableMapping() == FdoSmOvTableMappingType_BaseTable) && (pLpDataProp->GetBaseProperty()) )
                     AddUkeyBasePropError( pFdoDataProp );
-                pLpUniqueC->GetProperties()->Add( pLpDataProp );
+                FdoSmLpDataPropertiesP(pLpUniqueC->GetProperties())->Add( pLpDataProp );
             }
             else {
                 AddUkeyPropMissingError( pFdoDataProp );

Modified: branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Ph/Table.cpp
===================================================================
--- branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Ph/Table.cpp	2007-02-15 18:59:16 UTC (rev 781)
+++ branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Ph/Table.cpp	2007-02-15 20:00:00 UTC (rev 782)
@@ -588,7 +588,9 @@
     FdoStringsP     colClauses = FdoStringCollection::Create();
 
     for ( i = 0; i < columns->GetCount(); i++ ) {
-        colClauses->Add( FdoSmPhColumnP(columns->GetItem(i))->GetAddSql() );
+        FdoStringP colSql = FdoSmPhColumnP(columns->GetItem(i))->GetAddSql();
+        if ( colSql != L"" ) 
+            colClauses->Add( colSql );
     }
 
     return colClauses;



More information about the fdo-commits mailing list