File indexing completed on 2025-02-23 05:15:17
0001 // 0002 // Copyright (C) 2004-2006 Maciej Sobczak, Stephen Hutton 0003 // MySQL backend copyright (C) 2006 Pawel Aleksander Fedorynski 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_MYSQL_SOURCE 0010 #include "soci/mysql/soci-mysql.h" 0011 #include <ciso646> 0012 0013 #ifdef _MSC_VER 0014 #pragma warning(push) 0015 #pragma warning(disable:4355 4702) 0016 #endif 0017 0018 using namespace soci; 0019 using namespace soci::details; 0020 0021 mysql_blob_backend::mysql_blob_backend(mysql_session_backend &session) 0022 : session_(session) 0023 { 0024 throw soci_error("BLOBs are not supported."); 0025 } 0026 0027 mysql_blob_backend::~mysql_blob_backend() 0028 { 0029 } 0030 0031 std::size_t mysql_blob_backend::get_len() 0032 { 0033 throw soci_error("BLOBs are not supported."); 0034 } 0035 0036 std::size_t mysql_blob_backend::read_from_start(char * /* buf */, std::size_t /* toRead */, std::size_t /* offset */) 0037 { 0038 throw soci_error("BLOBs are not supported."); 0039 } 0040 0041 std::size_t mysql_blob_backend::write_from_start(char const * /* buf */, std::size_t /* toWrite */, std::size_t /* offset */) 0042 { 0043 throw soci_error("BLOBs are not supported."); 0044 } 0045 0046 std::size_t mysql_blob_backend::append( 0047 char const * /* buf */, std::size_t /* toWrite */) 0048 { 0049 throw soci_error("BLOBs are not supported."); 0050 } 0051 0052 void mysql_blob_backend::trim(std::size_t /* newLen */) 0053 { 0054 throw soci_error("BLOBs are not supported."); 0055 } 0056 0057 #ifdef _MSC_VER 0058 #pragma warning(pop) 0059 #endif