This commit is contained in:
rbock
2017-09-10 09:59:58 +02:00
parent 3f3cfbbd94
commit 2e635cc963
2 changed files with 10 additions and 1 deletions
+3 -1
View File
@@ -28,7 +28,9 @@
#define SQLPP_BLOB_DATA_TYPE_H
#include <vector>
#include <sqlpp11/type_traits.h>
#include <sqlpp11/logic.h>
namespace sqlpp
{
@@ -38,7 +40,7 @@ namespace sqlpp
using _cpp_value_type = std::vector<std::uint8_t>;
template <typename T>
using _is_valid_operand = is_blob_t<T>;
using _is_valid_operand = ::sqlpp::logic::any_t<is_blob_t<T>::value, is_text_t<T>::value>;
};
using blob = blob;
@@ -46,6 +46,13 @@ namespace sqlpp
using type = like_t<wrap_operand_t<L>, wrap_operand_t<R>>;
};
template <typename L, typename R>
struct return_type_like<L, R, binary_operand_check_t<L, is_blob_t, R, is_text_t>>
{
using check = consistent_t;
using type = like_t<wrap_operand_t<L>, wrap_operand_t<R>>;
};
template <typename Expression>
struct expression_operators<Expression, blob> : public basic_expression_operators<Expression>
{