head 1.2; access; symbols; locks; strict; comment @// @; 1.2 date 2013.09.11.12.22.33; author joerg; state dead; branches; next 1.1; commitid DwUslyGPCDaD715x; 1.1 date 2013.08.27.22.28.05; author joerg; state Exp; branches; next ; commitid mUinPoEFqsDBX83x; desc @@ 1.2 log @Update to soci 3.2.2: - Fix uninitialized indicators in conversion_into_type and conversion_use_type specialisations - Fixed placeholder matching for PostgreSQL-style casts with ORM - Fixed memory leaking in use binding in case of bind/unbind sequence - Fixed sscanf formatter for MinGW/MSVC in backends - Fixed partial placeholder name matching for ORM cases - Added test for use of indicators with rowset - Added test for get_affected_rows after bulk operations Add options for selecting MySQL/PostgreSQL/SQLite backends, defaulting to PostgreSQL. @ text @$NetBSD: patch-backends_postgresql_session.cpp,v 1.1 2013/08/27 22:28:05 joerg Exp $ --- backends/postgresql/session.cpp.orig 2013-08-26 22:13:09.945248387 +0000 +++ backends/postgresql/session.cpp @@@@ -8,6 +8,7 @@@@ #define SOCI_POSTGRESQL_SOURCE #include "soci-postgresql.h" #include "error.h" +#include "session.h" #include #include // libpq #include @@@@ -51,6 +52,14 @@@@ postgresql_session_backend::postgresql_s conn_ = conn; } +bool postgresql_session_backend::get_next_sequence_value( + session & s, std::string const & sequence, long & value) +{ + s << "select nextval('" + sequence + "')", into(value); + + return true; +} + postgresql_session_backend::~postgresql_session_backend() { clean_up(); @ 1.1 log @Merge get_next_sequence_value support for PostgreSQL from upstream. Bump revision. @ text @d1 1 a1 1 $NetBSD$ @