-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathPreparedStatement.cpp
More file actions
50 lines (38 loc) · 1.46 KB
/
Copy pathPreparedStatement.cpp
File metadata and controls
50 lines (38 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include <dbccpp/PreparedStatement.h>
namespace dbc
{
template<>
void PreparedStatement::set<int>(const int parameterIndex, const int val)
{ setInt(parameterIndex, val); }
template<>
void PreparedStatement::set<__int64>(const int parameterIndex, const __int64 val)
{ setInt64(parameterIndex, val); }
template<>
void PreparedStatement::set<bool>(const int parameterIndex, const bool val)
{ setBool(parameterIndex, val); }
template<>
void PreparedStatement::set<double>(const int parameterIndex, const double val)
{ setDouble(parameterIndex, val); }
template<>
void PreparedStatement::set<const char*>(const int parameterIndex, const char* const val)
{ setString(parameterIndex, val); }
template<>
void PreparedStatement::set<const char* const>(const int parameterIndex, const char* const val)
{ setString(parameterIndex, val); }
template<>
void PreparedStatement::set<std::string>(const int parameterIndex,
const std::string& val)
{ setString(parameterIndex, val); }
template<>
void PreparedStatement::set<wchar_t const* const>(const int parameterIndex,
wchar_t const* const val)
{ setWString(parameterIndex, std::wstring(val)); }
template<>
void PreparedStatement::set<wchar_t const*>(const int parameterIndex,
wchar_t const* const val)
{ setWString(parameterIndex, std::wstring(val)); }
template<>
void PreparedStatement::set<std::wstring>(const int parameterIndex,
const std::wstring& val)
{ setWString(parameterIndex, val); }
}//dbc namespace