Fix for issue 123 (https://github.com/SOCI/soci/issues/123)

This change is supposed to fix issue https://github.com/SOCI/soci/issues/123