Added patch to compile SOCI on FreeBSD 8.2
gcc version 4.2.1 20070719  [FreeBSD]
Merge branch 'FreeBSD/patch-strtoll-compile-error'
correctly handle negative values

sometimes, get_number_of_rows can return negative value, and this could lead to crash when
trying to resize vector

Signed-off-by: Mateusz Loskot <mateusz@loskot.net>
Use C++ cast operators.
Merge branch 'master' of github.com:SOCI/soci
Merge pull request #2 from jamercee/master

Fixed a compile error in FreeBSD 8.2, using the lates GCC version 4.2.1
Make INT UNSIGNED play nicely with soci::rowset<>.
Support long int on 32-bit architectures (thanks to Michael Evdokimov.)
Support parameters of type "long" correctly under all platforms.

Recent change added proper support for "long" parameters but relied on
__WORDSIZE being defined which isn't the case under e.g. Windows with MSVC.

Use template partial specialization to correctly select the tag for "long"
under both 32 and 64 bit architectures without using __WORDSIZE now.

Signed-off-by: Vadim Zeitlin <vz-soci@...>
Signed-off-by: Alex Ott <alexott@gmail.com>
add patch from Olaf Bonorden
Support x_long_long and x_unsigned_long_long input and output parameters (by Vadim Zeitlin)
Fixing a BIGINT UNSIGNED bug.

Also, previously INT UNSIGNED was converted to dt_long_long.  It seems that
dt_unsigned_long is a better match so I'm changing it.
Fixing the bug in yesterday's change (missing "break" in a switch.)

Also, adding support for unsigned long long for vectors, and for use() in
addition to into().
Firebird backend compilation fix: don't use x_cstring.

This string type has been removed from SOCI a long time ago, simply remove its
occurrences from the Firebird backend code.

Signed-off-by: Vadim Zeitlin <vz-soci@zeitlins.org>
Fix x_integer handling in Firebird backend.

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>
Compilation fix for ISC_STATUS use in Firebird backend.

ISC_STATUS is not the same as "long", use the correct type to fix compilation
with Firebird 2.x.

Signed-off-by: Vadim Zeitlin <vz-soci@zeitlins.org>
Don't use deprecated isc_interprete() in Firebird backend.

Using isc_interprete() is unsafe because it doesn't take the buffer size and
results in deprecation warnings with Firebird 2.x. Use the new fb_interpret()
instead to fix both problems.

Notice that this breaks compilation with Firebird 1.x but hopefully this is
not a problem as it's pretty old by now.

Signed-off-by: Vadim Zeitlin <vz-soci@zeitlins.org>
Work around bug in timestamp conversion in Firebird backend.

tm_isdst field of the returned struct tm was not set correctly, work around it
by always setting it to -1 until http://tracker.firebirdsql.org/browse/CORE-3877
is fixed.

Signed-off-by: Vadim Zeitlin <vz-soci@zeitlins.org>
Don't throw from firebird_rowid_backend destructor.

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>
Implement get_affected_rows() for Firebird backend.

Use isc_dsql_sql_info(isc_info_sql_records) to get the number of records
affected by the last statement.

Signed-off-by: Vadim Zeitlin <vz-soci@zeitlins.org>