Date: Monday, March 13, 2006 @ 19:15:49
Author: marc
Path: /cvsroot/carob/carob/include
Modified: CarobException.hpp (1.39 -> 1.40) StringCodecs.hpp (1.7 -> 1.8)
Moved CodecException to StringCodecs.hpp
--------------------+
CarobException.hpp | 21 ++++++++-------------
StringCodecs.hpp | 14 ++++++++++++++
2 files changed, 22 insertions(+), 13 deletions(-)
Index: carob/include/CarobException.hpp
diff -u carob/include/CarobException.hpp:1.39
carob/include/CarobException.hpp:1.40
--- carob/include/CarobException.hpp:1.39 Thu Mar 9 15:40:10 2006
+++ carob/include/CarobException.hpp Mon Mar 13 19:15:49 2006
@@ -116,7 +116,14 @@
/** SQL2 standard error code */
std::wstring SQLState;
- // Quite extensive lists of possible SQLStates can be found here:
+ // According to appendix A of the CLI standard
+ // http://www.opengroup.org/bookstore/catalog/c451.htm
+ // See also appendix B of the SQL standard available here:
+ // http://www.opengroup.org/bookstore/catalog/c449.htm
+ // The latter is a superset of the former, minus HY___ and a couple
+ // of other serialization or transactional CLI error codes.
+ //
+ // Quite extensive lists of possible SQLStates can also be found on-line
here:
// -
http://www.easysoft.com/developer/interfaces/odbc/sqlstate_status_return_codes.html
// -
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcodbc_error_codes.asp
@@ -239,18 +246,6 @@
NoMoreControllerException(std::wstring s) : DriverException(s) {};
};
-/**
- * Exception thrown when an encoding error occurs.
- */
-class CodecException : public DriverException
-{
-public:
- /**
- * Constructs a CodecException with the given message
- * @param s error message of the exception
- */
- CodecException(std::wstring s) : DriverException(s) {};
-};
/**
* Exception thrown when an attempt to convert a value (typically in a result
Index: carob/include/StringCodecs.hpp
diff -u carob/include/StringCodecs.hpp:1.7 carob/include/StringCodecs.hpp:1.8
--- carob/include/StringCodecs.hpp:1.7 Thu Jan 26 12:12:53 2006
+++ carob/include/StringCodecs.hpp Mon Mar 13 19:15:49 2006
@@ -28,6 +28,20 @@
namespace CarobNS {
+/**
+ * Exception thrown when an encoding error occurs.
+ */
+class CodecException : public DriverException
+{
+public:
+ /**
+ * Constructs a CodecException with the given message
+ * @param s error message of the exception
+ */
+ CodecException(std::wstring s) : DriverException(s) {};
+};
+
+
typedef std::codecvt<wchar_t, char, mbstate_t> mbs_codecvt;
typedef std::codecvt_byname<wchar_t, char, mbstate_t> mbs_codecvt_byname;
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits