Skip to content

Commit

Permalink
Ignored ide files
Browse files Browse the repository at this point in the history
Copied empty backend skeleton to db2 backend

Added DB2 detection and building

Implemented session backend calls
  • Loading branch information
Denis Chapligin committed Feb 20, 2013
1 parent 6bd76cb commit d9c90b9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/.gitignore
Expand Up @@ -18,4 +18,3 @@ missing
Makefile
Makefile.in
tmp

3 changes: 3 additions & 0 deletions src/backends/db2/soci-db2.h
Expand Up @@ -28,10 +28,13 @@

#include <cstddef>
#include <string>
<<<<<<< HEAD
#include <vector>
#include <iostream>
#include <sstream>
#include <cstring>
=======
>>>>>>> Ignored ide files

#include <sqlcli1.h>

Expand Down
2 changes: 1 addition & 1 deletion src/backends/db2/test/CMakeLists.txt
@@ -1,4 +1,4 @@
soci_backend_test(
BACKEND DB2
SOURCE test-db2.cpp
CONNSTR "Dsn=SAMPLE;Uid=db2inst1;Pwd=db2inst1;autocommit=off")
CONNSTR "Dsn=SAMPLE;Uid=db2inst1;Pwd=db2inst1;autocommit=off")
8 changes: 8 additions & 0 deletions src/backends/db2/test/test-db2.cpp
Expand Up @@ -6,7 +6,11 @@
//

#include "soci.h"
<<<<<<< HEAD
#include "soci-db2.h"
=======
#include "soci-empty.h"
>>>>>>> Ignored ide files
#include <iostream>
#include <string>
#include <cassert>
Expand All @@ -16,7 +20,11 @@
using namespace soci;

std::string connectString;
<<<<<<< HEAD
backend_factory const &backEnd = *soci::factory_db2();
=======
backend_factory const &backEnd = *soci::factory_empty();
>>>>>>> Ignored ide files


// NOTE:
Expand Down
4 changes: 0 additions & 4 deletions src/cmake/SociDependencies.cmake
Expand Up @@ -28,10 +28,6 @@ set(SOCI_BACKENDS_DB_DEPENDENCIES
Firebird
DB2)

set(SOCI_BACKENDS_ALL_DEPENDENCIES
Boost
${SOCI_BACKENDS_DB_DEPENDENCIES})

#
# Perform checks
#
Expand Down

0 comments on commit d9c90b9

Please sign in to comment.