Commit 2752cc7d authored by Mateusz Loskot's avatar Mateusz Loskot Committed by Ronan

Fix typo in SOCI_POSTGRESQL_NOSINLGEROWMODE option/macro name

How this has slipped through a few pair of reviewing eyes ;-)
Corrects changes added in #571 and #594
parent 06c0c64e
......@@ -67,7 +67,7 @@ Note that in the single-row operation:
Also please note that single rows mode requires PostgreSQL 9 or later, both at
compile- and run-time. If you need to support earlier versions of PostgreSQL,
you can define `SOCI_POSTGRESQL_NOSINLGEROWMODE` when building the library to
you can define `SOCI_POSTGRESQL_NOSINGLEROWMODE` when building the library to
disable it.
Once you have created a `session` object as shown above, you can use it to access the database, for example:
......@@ -168,4 +168,4 @@ To support older PostgreSQL versions, the following configuration macros are rec
* `SOCI_POSTGRESQL_NOBINDBYNAME` - switches off the query rewriting.
* `SOCI_POSTGRESQL_NOPARAMS` - disables support for parameterized queries (binding of use elements), automatically imposes also the `SOCI_POSTGRESQL_NOBINDBYNAME` macro. It is necessary for PostgreSQL 7.3.
* `SOCI_POSTGRESQL_NOPREPARE` - disables support for separate query preparation, which in this backend is significant only in terms of optimization. It is necessary for PostgreSQL 7.3 and 7.4.
* `SOCI_POSTGRESQL_NOSINLGEROWMODE` - disable single mode retrieving query results row-by-row. It is necessary for PostgreSQL prior to version 9.
* `SOCI_POSTGRESQL_NOSINGLEROWMODE` - disable single mode retrieving query results row-by-row. It is necessary for PostgreSQL prior to version 9.
......@@ -11,7 +11,7 @@
include(CMakeDependentOption)
option(SOCI_POSTGRESQL_NOSINLGEROWMODE
option(SOCI_POSTGRESQL_NOSINGLEROWMODE
"Do not use single row mode. PostgreSQL <9 portability."
OFF)
......@@ -40,11 +40,11 @@ if(SOCI_POSTGRESQL_NOPREPARE)
endif()
if (POSTGRESQL_VERSION VERSION_LESS "9.0.0")
set(SOCI_POSTGRESQL_NOSINLGEROWMODE ON CACHE BOOL "Use single row mode for PostgreSQL 9+" FORCE)
set(SOCI_POSTGRESQL_NOSINGLEROWMODE ON CACHE BOOL "Use single row mode for PostgreSQL 9+" FORCE)
endif()
if(SOCI_POSTGRESQL_NOSINLGEROWMODE)
add_definitions(-DSOCI_POSTGRESQL_NOSINLGEROWMODE=1)
if(SOCI_POSTGRESQL_NOSINGLEROWMODE)
add_definitions(-DSOCI_POSTGRESQL_NOSINGLEROWMODE=1)
endif()
soci_backend(PostgreSQL
......@@ -56,4 +56,4 @@ soci_backend(PostgreSQL
boost_report_value(SOCI_POSTGRESQL_NOPARAMS)
boost_report_value(SOCI_POSTGRESQL_NOBINDBYNAME)
boost_report_value(SOCI_POSTGRESQL_NOPREPARE)
boost_report_value(SOCI_POSTGRESQL_NOSINLGEROWMODE)
boost_report_value(SOCI_POSTGRESQL_NOSINGLEROWMODE)
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment