[fdo-commits] r651 -
branches/3.2.x/Providers/GenericRdbms/Src/MySQL/Fdo
svn_fdo at osgeo.org
svn_fdo at osgeo.org
Thu Jan 18 17:15:50 EST 2007
Author: thomasknoell
Date: 2007-01-18 17:15:49 -0500 (Thu, 18 Jan 2007)
New Revision: 651
Modified:
branches/3.2.x/Providers/GenericRdbms/Src/MySQL/Fdo/FdoRdbmsMySqlCommandCapabilities.cpp
branches/3.2.x/Providers/GenericRdbms/Src/MySQL/Fdo/FdoRdbmsMySqlConnection.cpp
Log:
This code drop removes the entries FdoRdbmsCommandType_CreateSpatialIndex, FdoRdbmsCommandType_DestroySpatialIndex and FdoRdbmsCommandType_GetSpatialIndexes from the Command Capability list for the MySQL Provider. In addition it ensures that an exception is raised should a user attempt to create any of the listed commands.
Modified: branches/3.2.x/Providers/GenericRdbms/Src/MySQL/Fdo/FdoRdbmsMySqlCommandCapabilities.cpp
===================================================================
--- branches/3.2.x/Providers/GenericRdbms/Src/MySQL/Fdo/FdoRdbmsMySqlCommandCapabilities.cpp 2007-01-18 19:46:32 UTC (rev 650)
+++ branches/3.2.x/Providers/GenericRdbms/Src/MySQL/Fdo/FdoRdbmsMySqlCommandCapabilities.cpp 2007-01-18 22:15:49 UTC (rev 651)
@@ -51,9 +51,9 @@
FdoCommandType_DescribeSchemaMapping,
FdoCommandType_SQLCommand,
// Custom commands
- FdoRdbmsCommandType_CreateSpatialIndex,
- FdoRdbmsCommandType_DestroySpatialIndex,
- FdoRdbmsCommandType_GetSpatialIndexes
+ //FdoRdbmsCommandType_CreateSpatialIndex,
+ //FdoRdbmsCommandType_DestroySpatialIndex,
+ //FdoRdbmsCommandType_GetSpatialIndexes
};
size = sizeof(commands)/sizeof(int);
return (int*) commands;
Modified: branches/3.2.x/Providers/GenericRdbms/Src/MySQL/Fdo/FdoRdbmsMySqlConnection.cpp
===================================================================
--- branches/3.2.x/Providers/GenericRdbms/Src/MySQL/Fdo/FdoRdbmsMySqlConnection.cpp 2007-01-18 19:46:32 UTC (rev 650)
+++ branches/3.2.x/Providers/GenericRdbms/Src/MySQL/Fdo/FdoRdbmsMySqlConnection.cpp 2007-01-18 22:15:49 UTC (rev 651)
@@ -32,6 +32,7 @@
#include "FdoRdbmsMySqlConnectionCapabilities.h"
#include "FdoRdbmsMySqlCommandCapabilities.h"
#include "FdoRdbmsMySqlFilterCapabilities.h"
+#include "Rdbms/FdoRdbmsCommandType.h"
#include "DbiConnection.h"
#include <Inc/Rdbi/proto.h>
@@ -87,6 +88,9 @@
case FdoCommandType_CreateLongTransaction:
case FdoCommandType_GetLongTransactions:
case FdoCommandType_RollbackLongTransaction:
+ case FdoRdbmsCommandType_CreateSpatialIndex:
+ case FdoRdbmsCommandType_DestroySpatialIndex:
+ case FdoRdbmsCommandType_GetSpatialIndexes:
throw FdoConnectionException::Create(NlsMsgGet(FDORDBMS_10, "Command not supported"));
break;
More information about the fdo-commits
mailing list