Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Buried headers] Change for the source code #4

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
8ee6974
[Branch src] Created the 'src' branch, corresponding to the 'src' sub…
da115115 Dec 26, 2010
9085f2b
[Branch src] tmp is now ignored by Git.
da115115 Dec 26, 2010
9341a89
[Branch src] Merged latest work from the buried_headers branch.
da115115 Dec 26, 2010
6499b09
[Branch src] tmp is now ignored.
da115115 Dec 26, 2010
bdca64e
[Branch src] Creation of the 'src' branch, from the master repository.
da115115 Dec 26, 2010
20dd44d
[Branch src] Creation of the 'src' branch, from the master repository.
da115115 Dec 26, 2010
359711a
[Branch src_buried_headers] Simplified the handling of error.h header…
da115115 Dec 26, 2010
a57686c
[Git] Added a .gitignore file for the src sub-directory.
da115115 Dec 26, 2010
28b45cc
[Branch src] Back to the master version of the src/README file.
da115115 Dec 26, 2010
79a6f6d
[Branch buried_headers] Added some missing include directives in the …
da115115 Dec 26, 2010
d38b5cc
[Branch src] Integrated latest changes from master (e.g., addition of…
da115115 Jan 14, 2011
2b4beaa
[Branch src_buried_headers] Integrated latest changes from master (e.…
da115115 Jan 14, 2011
62f8824
[Branch src_buried_headers] Just added an end-of-line at the end of t…
da115115 Jan 14, 2011
6bbdc28
[Branch src][Build] Integrated latest work on CMakeLists.txt from the…
da115115 Feb 8, 2011
632283b
[Branch src_buried_headers][Build] Integrated latest work on CMakeLis…
da115115 Feb 8, 2011
8803969
[Build] Integrated latest changes (=> ~3.1.0 version).
da115115 Jul 3, 2011
445a33d
[Build] Integrated latest changes (=> ~3.1.0 version).
da115115 Jul 3, 2011
56fc379
Latest changes from the master branch.
da115115 Jul 14, 2011
f3f648b
Latest changes from the master branch.
da115115 Jul 14, 2011
357b802
Latest changes from the master branch.
da115115 Jul 14, 2011
2562e6c
Merge branch 'src' into src_buried_headers
da115115 Jul 14, 2011
089d012
[Dev] Integrated upstream changes on SQLite3 back-end.
da115115 Oct 24, 2011
74b9f7d
Merge branch 'src' into src_buried_headers
da115115 Oct 24, 2011
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,21 @@
*~
*.kdev[0-9]
*.swp
aclocal.m4
autom4te.cache
confdefs.h
config.guess
config.log
config.status
config.sub
configure
depcomp
install-sh
libtool
ltmain.sh
m4
missing
Makefile
Makefile.in
tmp

4 changes: 4 additions & 0 deletions src/AUTHORS → AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,7 @@ soci_backend_test_create_vcxproj_user
==== Mario Valesco ====

Mario tested building SOCI using MinGW toolset.

==== Gevorg Voskanyan ====

Gevorg submitted new exception type postgresql_soci_error to PostgreSQL backend.
65 changes: 65 additions & 0 deletions src/CHANGES → CHANGES
Original file line number Diff line number Diff line change
@@ -1,5 +1,70 @@
This file contains the history of changes in the SOCI library.

---
Version 3.1.0 differs from 3.0.0 in the following ways:

- Added Ada language binding

- Migraded build system from GNU Autotools and Visual Studio projects to CMake

- CMake build tested with Visual Studio, GCC and clang

- Incorporated a compromise for naming versioned shared libraries

- Enhanced and improved integration with Boost libraries:
-- Boost.DateTime
-- Boost.Fusion
-- Boost.Optional
-- Boost.Tuple

- Bug fixes and improvements in core and backends:
-- Added soci::values::get_properties accessor useful for composing soci::type_conversion
-- Export advanced API of backend loader from DLL.
-- Added static factory registration functions for backends
-- Added get_affected_rows operation
-- Fixed thread-safety of connection pool under Windows
-- Fixed bug with droping const qualifiers when binding to std::vector<soci::indicator>
-- Fixed bug in default initialization of an object of const backend_factory wihch requires user-provided default constructor (see C++03/C++0x)
-- Fixes for 64-bit builds
-- Removed redundant exchange_traits breaking ODR on LP64
-- Better ODBC support
-- Type conversion support for unsigned integer types
-- Bug ID:1971436 - incorrect rowset copy operations
-- Bug ID:2010367 - memory leak (ODBC)
-- Bug ID:2010409 - invalid memory allocaton in define by position (ODBC)
-- Bug ID:2021243 - long long type support in Visual C++
-- Patch ID:2483066 - 64bit Linux and 64bit integer submitted
-- Patch ID:2809809 - Fix build with GCC 4.4
-- Patch ID:2809810 - Fix SQLite3 build with GCC 4.3
-- Patch ID:2581206 - Windows unicode application
-- Patch ID:3058275 - install target for cmake build submitted
-- Patch ID:3069375 - use $(prefix)/lib64 on AMD64 platforms.
-- Improved performance while accessing query results (MySQL)
-- Bug fixes for PROCEDURE support (MySQL)
-- Removed throw statements from mysql_rowid_backend and mysql_blob_backend destructors (MySQL)
-- Verify that prepared statements survive session::reconnect() operatoin (MySQL)
-- Improved support for time and date (MySQL, PostgreSQL)
-- Fixed bug with strings of length exceeding 255 characters (ODBC)
-- Improved interpretation of the connect string (Oracle)
-- Added handling of unsigned long long (Oracle, SQLite3, PostgreSQL)
-- Fixes in integral types support (PostgreSQL)
-- Support for colon-casts (PostgreSQL)
-- Added possibility for use BLOB (PostgreSQL)
-- Added support for connection property "synchronous=on|off" (SQLite3)
-- Improved BLOB data handling (SQLite3)
-- Improved boolean type suppport (SQLite3)
-- Session timeout support (SQLite3)
-- Improved tests clean-up (SQLite3)
-- Added missing typedef of sqlite3_destructor_type which has been defined in sqlite3.h but since 3.3.10 (see comment for reference to SQLite ticket)

- Updated tests for various backends and SQL data types

- Migrated from CVS to Git repository

- Changed naming convensions and style across all the source code

- Firebird backend removed from official release as not actively maintained. Available in the Git repository.

---
Version 3.0.0 differs from 2.2.0 in the following ways:

Expand Down
8 changes: 4 additions & 4 deletions src/CMakeLists.txt → CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#################################################################################
#
# This file is part of CMake configuration for SOCI library
#
Expand All @@ -19,7 +18,7 @@ project(SOCI)
#################################################################################

# Path to additional CMake modules
set(CMAKE_MODULE_PATH ${SOCI_SOURCE_DIR}/cmake${CMAKE_MODULE_PATH})
set(CMAKE_MODULE_PATH ${SOCI_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
set(CMAKE_MODULE_PATH ${SOCI_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})

include(SociUtilities)
Expand Down Expand Up @@ -68,7 +67,7 @@ include(SociDependencies)
# Installation
#################################################################################

if(UNIX AND CMAKE_SIZEOF_VOID_P EQUAL 4)
if(APPLE OR CMAKE_SIZEOF_VOID_P EQUAL 4)
set(SOCI_LIBDIR "lib")
else()
set(SOCI_LIBDIR "lib64")
Expand All @@ -82,7 +81,7 @@ set(INCLUDEDIR "include" CACHE PATH "The directory to install includes into.")
#################################################################################
# Enable CTest support
#################################################################################
#include(CTest)
include(CTest)
enable_testing()

# Define "make check" as alias for "make test"
Expand All @@ -95,5 +94,6 @@ include(SociBackend)

include_directories(${SOCI_SOURCE_DIR}/core)

#
add_subdirectory(core)
add_subdirectory(backends)
13 changes: 13 additions & 0 deletions CTestConfig.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## This file should be placed in the root directory of your project.
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
## # The following are required to uses Dart and the Cdash dashboard
## ENABLE_TESTING()
## INCLUDE(CTest)
set(CTEST_PROJECT_NAME "SOCI")
set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")

set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "my.cdash.org")
set(CTEST_DROP_LOCATION "/submit.php?project=SOCI")
set(CTEST_DROP_SITE_CDASH TRUE)
File renamed without changes.
24 changes: 16 additions & 8 deletions README
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
SOCI - The C++ Database Access Library
--------------------------------------
SOCI - The C++ Database Access Library.

Project website:
Copyright (C) 2004-2008 Maciej Sobczak, Stephen Hutton,
David Courtney, Pawel Aleksander Fedorynski,
Rafal Bobrowski, Mateusz Loskot

http://soci.sourceforge.net
The homepage of the SOCI library is:
http://soci.sourceforge.net/

---

Development, Download, Bug Tracking, Mailing Lists:
You should see the following files and directories here:

http://sourceforge.net/projects/soci/
- README - This file.
- LICENSE_1_0.txt - Full text of the Boost license.
- CHANGES - The description of changes.

Git repository of SOCI project
------------------------------
That branch corresponds to the 'src' sub-directory of the Git repository.

Reminder: Git repository of SOCI project
----------------------------------------
/src - project source code tree
/doc - project documentation
/www - project website
/build - legacy build configurations (to be removed)

Empty file added TODO
Empty file.
File renamed without changes.
13 changes: 13 additions & 0 deletions backends/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
message(STATUS "")
colormsg(_HIBLUE_ "Configuring SOCI database backends:")

##############################################################
# TODO: Scan and add directories automatically --mloskot
set ( _SUBDIRS_ empty mysql odbc oracle postgresql sqlite3 )

foreach ( subd ${_SUBDIRS_} )
add_subdirectory( ${subd} )
endforeach ()


message(STATUS "")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 7 additions & 3 deletions src/backends/empty/soci-empty.h → backends/empty/soci-empty.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@
#ifndef SOCI_EMPTY_DECL
# define SOCI_EMPTY_DECL
#endif

#include "soci-backend.h"

//
#if defined(SOCI_HEADERS_BURIED)
# include <soci/core/soci-backend.h>
#else
# include <soci-backend.h>
#endif
//
#include <cstddef>
#include <string>

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 7 additions & 1 deletion src/backends/mysql/common.cpp → backends/mysql/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
//

#include "common.h"
#include "soci-backend.h"
//
#if defined(SOCI_HEADERS_BURIED)
# include <soci/core/soci-backend.h>
#else
# include <soci-backend.h>
#endif
//
#include <ciso646>
#include <cstdlib>
#include <cstring>
Expand Down
10 changes: 9 additions & 1 deletion src/backends/mysql/common.h → backends/mysql/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@
#ifndef SOCI_MYSQL_COMMON_H_INCLUDED
#define SOCI_MYSQL_COMMON_H_INCLUDED

#include "soci-mysql.h"
//
#if defined(SOCI_HEADERS_BURIED)
# include <soci/core/soci-platform.h>
# include <soci/backends/mysql/soci-mysql.h>
#else
# include <soci-platform.h>
# include <soci-mysql.h>
#endif
//
// std
#include <cstddef>
#include <ctime>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 14 additions & 3 deletions src/backends/mysql/soci-mysql.h → backends/mysql/soci-mysql.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,23 @@
#ifndef SOCI_MYSQL_DECL
# define SOCI_MYSQL_DECL
#endif

#include "soci-backend.h"
//
#if defined(SOCI_HEADERS_BURIED)
# include <soci/core/soci-backend.h>
#else
# include <soci-backend.h>
#endif
//
#ifdef _WIN32
#include <winsock.h> // SOCKET
#endif // _WIN32
#include <mysql.h> // MySQL Client
//
// MySQL Client
#if defined(SOCI_MYSQL_HEADERS_BURIED)
# include <mysql/mysql.h>
#else
# include <mysql.h>
#endif
#include <vector>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@
//

#define SOCI_MYSQL_SOURCE
#include "soci-mysql.h"
#include <soci-platform.h>
#include "common.h"
//
#if defined(SOCI_HEADERS_BURIED)
# include <soci/core/soci-platform.h>
# include <soci/backends/mysql/soci-mysql.h>
#else
# include <soci-platform.h>
# include <soci-mysql.h>
#endif
//
// std
#include <cassert>
#include <ciso646>
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <ctime>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@
//

#define SOCI_MYSQL_SOURCE
#include "soci-mysql.h"
#include "common.h"
#include <soci-platform.h>
//
#if defined(SOCI_HEADERS_BURIED)
# include <soci/core/soci-platform.h>
# include <soci/backends/mysql/soci-mysql.h>
#else
# include <soci-platform.h>
# include <soci-mysql.h>
#endif
//
// std
#include <ciso646>
#include <cstdio>
Expand Down
File renamed without changes.
File renamed without changes.
Loading