Skip to content

Commit

Permalink
Fix x_integer handling in Firebird backend.
Browse files Browse the repository at this point in the history
Use "int", not "long long", for "into" parameters of x_integer type. This is
consistent with both "use" parameters and the other backends and just makes
more sense.

Do use "long long" for x_long_long "into" parameters.

Signed-off-by: Vadim Zeitlin <vz-soci@zeitlins.org>
  • Loading branch information
vadz committed Jul 6, 2012
1 parent 29873bc commit d8099e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/backends/firebird/standard-into-type.cpp
Expand Up @@ -85,6 +85,12 @@ void firebird_standard_into_type_backend::exchangeData()
}
break;
case x_integer:
{
int t = from_isc<int>(var);
*reinterpret_cast<int *>(data_) = t;
}
break;
case x_long_long:
{
long long t = from_isc<long long>(var);
*reinterpret_cast<long long *>(data_) = t;
Expand Down

0 comments on commit d8099e6

Please sign in to comment.