Date: Thursday, June 7, 2007 @ 17:00:08
Author: marc
Path: /cvsroot/carob/carob/test
Modified: ConnectionSetup.cpp (1.22 -> 1.23)
Added MySQL SQL state in dropifexists
---------------------+
ConnectionSetup.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: carob/test/ConnectionSetup.cpp
diff -u carob/test/ConnectionSetup.cpp:1.22 carob/test/ConnectionSetup.cpp:1.23
--- carob/test/ConnectionSetup.cpp:1.22 Tue Apr 24 17:55:41 2007
+++ carob/test/ConnectionSetup.cpp Thu Jun 7 17:00:07 2007
@@ -163,7 +163,8 @@
// rethrow if different from UNDEFINED TABLE
// TODO: ignore case here. Problem: "case" concept is locale sensitive?
if (0 != be.getSQLState().compare(L"42P01") // postgres
- && 0 != be.getSQLState().compare(L"S0002")) // hypersonic
+ && 0 != be.getSQLState().compare(L"S0002") // hypersonic
+ && 0 != be.getSQLState().compare(L"42S02")) // MySQL
throw be; // and leak. Who cares?
// else ignore
}
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits