Commit 1e693d36 authored by Mateusz Loskot's avatar Mateusz Loskot

Untabify

parent 52c7836a
......@@ -256,7 +256,7 @@ struct postgresql_session_backend : details::session_backend
struct postgresql_backend_factory : backend_factory
{
postgresql_backend_factory() {}
postgresql_backend_factory() {}
virtual postgresql_session_backend * make_session(
std::string const & connectString) const;
};
......
......@@ -556,15 +556,15 @@ struct bytea_table_creator : public table_creator_base
void test_bytea()
{
{
{
session sql(backEnd, connectString);
bytea_table_creator tableCreator(sql);
bytea_table_creator tableCreator(sql);
int v = 0x0A0B0C0D;
unsigned char* b = reinterpret_cast<unsigned char*>(&v);
std::string data;
std::copy(b, b + sizeof(v), std::back_inserter(data));
{
{
sql << "insert into soci_test(val) values(:val)", use(data);
......@@ -583,7 +583,7 @@ void test_bytea()
std::string bin2 = r.get<std::string>(0);
assert(bin2 == "\\x0d0c0b0a");
}
}
}
std::cout << "test bytea passed" << std::endl;
}
......
......@@ -507,11 +507,11 @@ bool statement_impl::resize_intos(std::size_t upperBound)
// this function does not need to take into account the intosForRow_
// elements, since they are never used for bulk operations
int rows = backEnd_->get_number_of_rows();
if (rows < 0)
{
rows = 0;
}
int rows = backEnd_->get_number_of_rows();
if (rows < 0)
{
rows = 0;
}
if (upperBound != 0 && upperBound < static_cast<std::size_t>(rows))
{
rows = static_cast<int>(upperBound);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment