Date: Thursday, March 16, 2006 @ 15:35:18
Author: marc
Path: /cvsroot/carob/carob/include
Modified: StringCodecs.hpp (1.8 -> 1.9)
Added SQLState 22018 on conversion exceptions.
------------------+
StringCodecs.hpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
Index: carob/include/StringCodecs.hpp
diff -u carob/include/StringCodecs.hpp:1.8 carob/include/StringCodecs.hpp:1.9
--- carob/include/StringCodecs.hpp:1.8 Mon Mar 13 19:15:49 2006
+++ carob/include/StringCodecs.hpp Thu Mar 16 15:35:18 2006
@@ -38,7 +38,10 @@
* Constructs a CodecException with the given message
* @param s error message of the exception
*/
- CodecException(std::wstring s) : DriverException(s) {};
+ CodecException(std::wstring s) : DriverException(s, L"22018") {};
+ // In theory 22018 is only for SQL data conversions, and there is
+ // a slight chance that we were doing something else. Even in this
+ // case it is still more informative than nothing.
};
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits