Skip to content

Commit

Permalink
Don't throw from firebird_rowid_backend destructor.
Browse files Browse the repository at this point in the history
This is useless as the exception would already be thrown if an object of this
class were constructed, there is no need to also throw it when destroying it
and doing this results in compilation warnings from at least MSVC.

Signed-off-by: Vadim Zeitlin <vz-soci@zeitlins.org>
  • Loading branch information
vadz committed Jul 6, 2012
1 parent a1251af commit d112e19
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/backends/firebird/row-id.cpp
Expand Up @@ -18,6 +18,4 @@ firebird_rowid_backend::firebird_rowid_backend(firebird_session_backend & /* ses

firebird_rowid_backend::~firebird_rowid_backend()
{
// Unsupported in Firebird backend
throw soci_error("RowIDs are not supported");
}

0 comments on commit d112e19

Please sign in to comment.