File indexing completed on 2025-02-23 05:15:15
0001 // 0002 // Copyright (C) 2011-2013 Denis Chapligin 0003 // Copyright (C) 2004-2006 Maciej Sobczak, Stephen Hutton 0004 // Distributed under the Boost Software License, Version 1.0. 0005 // (See accompanying file LICENSE_1_0.txt or copy at 0006 // http://www.boost.org/LICENSE_1_0.txt) 0007 // 0008 0009 #define SOCI_DB2_SOURCE 0010 #include "soci/db2/soci-db2.h" 0011 0012 #ifdef _MSC_VER 0013 # pragma warning(disable:4355 4702) 0014 #endif 0015 0016 using namespace soci; 0017 using namespace soci::details; 0018 0019 0020 db2_blob_backend::db2_blob_backend(db2_session_backend &session) 0021 : session_(session) 0022 { 0023 throw soci_error("BLOBs are not supported."); 0024 } 0025 0026 db2_blob_backend::~db2_blob_backend() 0027 { 0028 } 0029 0030 std::size_t db2_blob_backend::get_len() 0031 { 0032 throw soci_error("BLOBs are not supported."); 0033 } 0034 0035 std::size_t db2_blob_backend::read_from_start(char * /* buf */, std::size_t /* toRead */, std::size_t /* offset */) 0036 { 0037 throw soci_error("BLOBs are not supported."); 0038 } 0039 0040 std::size_t db2_blob_backend::write_from_start(char const * /* buf */, std::size_t /* toWrite */, std::size_t /* offset */) 0041 { 0042 throw soci_error("BLOBs are not supported."); 0043 } 0044 0045 std::size_t db2_blob_backend::append( 0046 char const * /* buf */, std::size_t /* toWrite */) 0047 { 0048 throw soci_error("BLOBs are not supported."); 0049 } 0050 0051 void db2_blob_backend::trim(std::size_t /* newLen */) 0052 { 0053 throw soci_error("BLOBs are not supported."); 0054 } 0055 0056 #ifdef _MSC_VER 0057 # pragma warning(pop) 0058 #endif