[fdo-commits] r664 -
branches/3.2.x/Providers/GenericRdbms/Src/Fdo/Lt
svn_fdo at osgeo.org
svn_fdo at osgeo.org
Mon Jan 22 15:59:10 EST 2007
Author: thomasknoell
Date: 2007-01-22 15:59:10 -0500 (Mon, 22 Jan 2007)
New Revision: 664
Modified:
branches/3.2.x/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsCommitLongTransaction.cpp
branches/3.2.x/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsGetLongTransactions.cpp
branches/3.2.x/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsRollbackLongTransaction.cpp
Log:
Modifications to the code to reflect the changed exception messages.
Modified: branches/3.2.x/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsCommitLongTransaction.cpp
===================================================================
--- branches/3.2.x/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsCommitLongTransaction.cpp 2007-01-22 20:57:56 UTC (rev 663)
+++ branches/3.2.x/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsCommitLongTransaction.cpp 2007-01-22 20:59:10 UTC (rev 664)
@@ -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
@@ -156,9 +156,11 @@
FDORDBMSLONGTRANSACTIONCONSTANTS_LT_NAME_MAX_LENGTH) ||
(wcslen(value) == 0 ) )
throw FdoCommandException::Create(
- NlsMsgGet1(FDORDBMS_358,
- "Invalid long transaction name '%1$ls'",
- value));
+ NlsMsgGet2(
+ FDORDBMS_358,
+ "%1$ls: Long transaction name ('%2$ls') too long (0 < name <= 30)",
+ L"FdoICommitLongTransaction",
+ value));
if (wcscmp(value, FDO_ROOTLONGTRANSACTION) == 0)
throw FdoCommandException::Create(
@@ -240,9 +242,9 @@
throw FdoCommandException::Create(
NlsMsgGet2(
FDORDBMS_363,
- "Invalid long transaction name ('%1$ls') for command '%2$ls'",
+ "%1$ls: Invalid long transaction name ('%2$ls')",
L"NULL",
- L"FdoIRollbackLongTransaction"));
+ L"FdoICommitLongTransaction"));
// Set a shortcut reference to the Long Transaction Manager.
Modified: branches/3.2.x/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsGetLongTransactions.cpp
===================================================================
--- branches/3.2.x/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsGetLongTransactions.cpp 2007-01-22 20:57:56 UTC (rev 663)
+++ branches/3.2.x/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsGetLongTransactions.cpp 2007-01-22 20:59:10 UTC (rev 664)
@@ -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
@@ -113,9 +113,11 @@
if ((wcslen(value) > DBI_VERSION_NAME_LENGTH) ||
(wcslen(value) == 0 ) )
throw FdoCommandException::Create(
- NlsMsgGet1(FDORDBMS_358,
- "Invalid long transaction name '%1$ls'",
- value));
+ NlsMsgGet2(
+ FDORDBMS_358,
+ "%1$ls: Long transaction name ('%2$ls') too long (0 < name <= 30)",
+ L"FdoIGetLongTransactions",
+ value));
// The basic tests to ensure the given long transaction name is valid have
// been completed and the given name can be stored with the command.
Modified: branches/3.2.x/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsRollbackLongTransaction.cpp
===================================================================
--- branches/3.2.x/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsRollbackLongTransaction.cpp 2007-01-22 20:57:56 UTC (rev 663)
+++ branches/3.2.x/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsRollbackLongTransaction.cpp 2007-01-22 20:59:10 UTC (rev 664)
@@ -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
@@ -155,9 +155,11 @@
FDORDBMSLONGTRANSACTIONCONSTANTS_LT_NAME_MAX_LENGTH) ||
(wcslen(value) == 0 ) )
throw FdoCommandException::Create(
- NlsMsgGet1(FDORDBMS_358,
- "Invalid long transaction name '%1$ls'",
- value));
+ NlsMsgGet2(
+ FDORDBMS_358,
+ "%1$ls: Long transaction name ('%2$ls') too long (0 < name <= 30)",
+ L"FdoIRollbackLongTransaction",
+ value));
if (wcscmp(value, FDO_ROOTLONGTRANSACTION) == 0)
throw FdoCommandException::Create(
More information about the fdo-commits
mailing list