Skip to content

Commit

Permalink
Untabify
Browse files Browse the repository at this point in the history
  • Loading branch information
mloskot committed Mar 3, 2013
1 parent 52c7836 commit 1e693d3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/backends/postgresql/soci-postgresql.h
Expand Up @@ -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;
};
Expand Down
8 changes: 4 additions & 4 deletions src/backends/postgresql/test/test-postgresql.cpp
Expand Up @@ -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);

Expand All @@ -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;
}

Expand Down
10 changes: 5 additions & 5 deletions src/core/statement.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 1e693d3

Please sign in to comment.