Date: Wednesday, January 4, 2006 @ 19:55:05
  Author: marc
    Path: /cvsroot/carob/carob/include

Modified: Connection.hpp (1.41 -> 1.42)

Now reporting protocol version of _both_ sides in case of mismatch.
Splitted protocol version into major + minor.


----------------+
 Connection.hpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)


Index: carob/include/Connection.hpp
diff -u carob/include/Connection.hpp:1.41 carob/include/Connection.hpp:1.42
--- carob/include/Connection.hpp:1.41   Wed Jan  4 11:53:51 2006
+++ carob/include/Connection.hpp        Wed Jan  4 19:55:05 2006
@@ -31,6 +31,10 @@
 #include "DriverSocket.hpp"
 #include "RequestWithResultSetParameters.hpp"
 
+namespace {
+const int32_t ProtocolVersion = ((int32_t) 0/* major */ << 16) + 33/* minor */;
+}
+
 namespace CarobNS {
 
 /** "Controller Ready" magic number. */
@@ -38,8 +42,6 @@
 /** Command prefix sent before each command */
 #define CommandPrefix                           0xB015CA
 
-#define ProtocolVersion                         33
-
 //#define Ping                                    -1
 #define StatementExecuteQuery                   0
 #define StatementExecuteUpdate                  1

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to