Skip to content

Commit 0438ab1

Browse files
Change Clob to shared_ptr vector<char>
1 parent a566890 commit 0438ab1

File tree

3 files changed

+217
-123
lines changed

3 files changed

+217
-123
lines changed

sqlite3pp.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ namespace sqlite3pp
5757
#else
5858
std::wstring to_wstring( const char* src );
5959
#ifdef _INC_TCHAR
60-
typedef std::basic_string<TCHAR> tstring;
60+
typedef std::basic_string<TCHAR> tstring;
6161
#else
62-
typedef std::wstring tstring;
62+
typedef std::wstring tstring;
6363
#endif //_INC_TCHAR
6464
#endif //SQLITE3PP_NO_UNICODE
6565

@@ -81,8 +81,8 @@ namespace sqlite3pp
8181
using DoublePrcsn = double;
8282
using Double = double;
8383
using Float = double;
84-
using Blob = std::shared_ptr<std::vector<Tinyint> >;
85-
using Clob = std::shared_ptr< std::basic_string<unsigned char> >;
84+
using Blob = std::shared_ptr<std::vector<Tinyint> >;// Stores binary data
85+
using Clob = std::shared_ptr< std::vector<char> >; // Stores strings that can have multiple NULL terminators
8686
struct Date {std::time_t t;};
8787
struct Datetime {std::tm tm_struct;};
8888
using Nchar = std::wstring;

0 commit comments

Comments
 (0)