Date: Monday, January 22, 2007 @ 11:03:37
  Author: marc
    Path: /cvsroot/carob/carob

Modified: dummymain.cpp (1.1 -> 1.2)

Modified so it can actually run (tests library loading and static init)


---------------+
 dummymain.cpp |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)


Index: carob/dummymain.cpp
diff -u carob/dummymain.cpp:1.1 carob/dummymain.cpp:1.2
--- carob/dummymain.cpp:1.1     Tue Dec 19 18:24:41 2006
+++ carob/dummymain.cpp Mon Jan 22 11:03:37 2007
@@ -1,12 +1,20 @@
 
-#include "DriverResultSet.hpp"
+#include "Connection.hpp"
+
+#include <vector>
 
 int main()
 {
   // ensure we pull out some symbols
-    CarobNS::DriverResultSet *rs;
-
-    rs->next();
 
-    return 1;  
+  // 1- Connecting:
+  // 1.1 Create the parameters of the connection
+  std::vector<CarobNS::ControllerInfo> ctrls;
+  ctrls.push_back(CarobNS::ControllerInfo(L"192.168.0.39", 25322));
+  
+  CarobNS::ConnectionParameters connectionPrms(ctrls,
+                                      L"myDB",
+                                      L"user",
+                                      L"");
+  return 0;
 }

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

Reply via email to