[fdo-commits] r750 - branches/3.2.x/Providers/GenericRdbms/Src/ODBC/SchemaMgr/Ph

svn_fdo at osgeo.org svn_fdo at osgeo.org
Wed Feb 14 18:27:56 EST 2007


Author: gavincramer
Date: 2007-02-14 18:27:45 -0500 (Wed, 14 Feb 2007)
New Revision: 750

Modified:
   branches/3.2.x/Providers/GenericRdbms/Src/ODBC/SchemaMgr/Ph/DbObject.cpp
   branches/3.2.x/Providers/GenericRdbms/Src/ODBC/SchemaMgr/Ph/DbObject.h
Log:
ODBC: Primary keys in views

Modified: branches/3.2.x/Providers/GenericRdbms/Src/ODBC/SchemaMgr/Ph/DbObject.cpp
===================================================================
--- branches/3.2.x/Providers/GenericRdbms/Src/ODBC/SchemaMgr/Ph/DbObject.cpp	2007-02-14 22:35:16 UTC (rev 749)
+++ branches/3.2.x/Providers/GenericRdbms/Src/ODBC/SchemaMgr/Ph/DbObject.cpp	2007-02-14 23:27:45 UTC (rev 750)
@@ -23,6 +23,7 @@
 #include "Rd/OraColumnReader.h"
 #include "Rd/DbObjectReader.h"
 #include "Sm/Ph/Rd/DbObjectReader.h"
+#include "Rd/PkeyReader.h"
 #include "ColumnChar.h"
 #include "ColumnBool.h"
 #include "ColumnByte.h"
@@ -265,3 +266,11 @@
     else
         return new FdoSmPhRdOdbcColumnReader( GetManager(), FDO_SAFE_ADDREF(this) );
 }
+
+FdoPtr<FdoSmPhRdPkeyReader> FdoSmPhOdbcDbObject::CreatePkeyReader() const
+{
+    FdoSmPhOdbcDbObject* pDbObject = (FdoSmPhOdbcDbObject*) this;
+
+    return new FdoSmPhRdOdbcPkeyReader( pDbObject->GetManager(), FDO_SAFE_ADDREF(pDbObject) );
+}
+

Modified: branches/3.2.x/Providers/GenericRdbms/Src/ODBC/SchemaMgr/Ph/DbObject.h
===================================================================
--- branches/3.2.x/Providers/GenericRdbms/Src/ODBC/SchemaMgr/Ph/DbObject.h	2007-02-14 22:35:16 UTC (rev 749)
+++ branches/3.2.x/Providers/GenericRdbms/Src/ODBC/SchemaMgr/Ph/DbObject.h	2007-02-14 23:27:45 UTC (rev 750)
@@ -180,6 +180,8 @@
     // Column reader creator implementation.
     virtual FdoPtr<FdoSmPhRdColumnReader> CreateColumnReader();
 
+    virtual FdoPtr<FdoSmPhRdPkeyReader> CreatePkeyReader() const;
+
 protected:
 
     // Overrideable settings:



More information about the fdo-commits mailing list