Skip to content

Commit b401e1d

Browse files
committed
Fix Windows warnings and build
1 parent 16f73b7 commit b401e1d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cppconn/connection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ enum ssl_mode
156156
SSL_MODE_VERIFY_CA, SSL_MODE_VERIFY_IDENTITY
157157
};
158158

159-
class Savepoint
159+
class CPPCONN_PUBLIC_FUNC Savepoint
160160
{
161161
/* Prevent use of these */
162162
Savepoint(const Savepoint &);

test/CJUnitTestsPort/simple/BlobTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ void BlobTest::tearDown()
123123

124124
if ( asString )
125125
{
126-
sql::SQLString str;
127-
testBlobFile->readFile( const_cast<std::string&>(str.asStdString()) );
126+
std::string str;
127+
testBlobFile->readFile(str);
128128

129129
pstmt->setString( 1, str );
130130
pstmt->execute();

0 commit comments

Comments
 (0)