~mysql/mysql-connector-cpp/trunk

« back to all changes in this revision

Viewing changes to test/unit/classes/preparedstatement.cpp

  • Committer: Hemant Dangi
  • Date: 2014-12-17 16:28:39 UTC
  • Revision ID: hemant.dangi@oracle.com-20141217162839-sdbpj3fcwn5gxjxh
Bug #75251: Add C++11 support and replace (deprecated in C++11) auto_ptr

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
 
2
Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved.
3
3
 
4
4
The MySQL Connector/C++ is licensed under the terms of the GPLv2
5
5
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
1432
1432
    ASSERT_EQUALS(res->getString("col1"), blob_input_stream.str());
1433
1433
    ASSERT_EQUALS(res->getString("col1"), blob_input);
1434
1434
 
1435
 
    std::auto_ptr< std::istream > blob_output_stream(res->getBlob(2));
 
1435
    boost::scoped_ptr< std::istream > blob_output_stream(res->getBlob(2));
1436
1436
    blob_output_stream->seekg(std::ios::beg);
1437
1437
    blob_output_stream->get(blob_output, offset + 1);
1438
1438
    ASSERT_EQUALS(blob_input_stream.str(), blob_output);