[fdo-commits] r667 - trunk/Providers/GenericRdbms/Src/Fdo/Lt
svn_fdo at osgeo.org
svn_fdo at osgeo.org
Mon Jan 22 16:11:18 EST 2007
Author: thomasknoell
Date: 2007-01-22 16:11:17 -0500 (Mon, 22 Jan 2007)
New Revision: 667
Modified:
trunk/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsCommitLongTransaction.cpp
trunk/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsGetLongTransactions.cpp
trunk/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsRollbackLongTransaction.cpp
Log:
Modifications to the code to reflect the changed exception messages.
Modified: trunk/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsCommitLongTransaction.cpp
===================================================================
--- trunk/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsCommitLongTransaction.cpp 2007-01-22 21:10:33 UTC (rev 666)
+++ trunk/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsCommitLongTransaction.cpp 2007-01-22 21:11:17 UTC (rev 667)
@@ -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: trunk/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsGetLongTransactions.cpp
===================================================================
--- trunk/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsGetLongTransactions.cpp 2007-01-22 21:10:33 UTC (rev 666)
+++ trunk/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsGetLongTransactions.cpp 2007-01-22 21:11:17 UTC (rev 667)
@@ -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: trunk/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsRollbackLongTransaction.cpp
===================================================================
--- trunk/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsRollbackLongTransaction.cpp 2007-01-22 21:10:33 UTC (rev 666)
+++ trunk/Providers/GenericRdbms/Src/Fdo/Lt/FdoRdbmsRollbackLongTransaction.cpp 2007-01-22 21:11:17 UTC (rev 667)
@@ -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