From 7571535ff4eec967ea07b751e2e74a7ec55d293f Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Fri, 22 Nov 2019 13:40:30 +0000 Subject: [PATCH] added comments to PostgreSQLQueryResult::get_value_from_result(): * in the future we can use single row mode: * https://www.postgresql.org/docs/10/libpq-single-row-mode.html * * or just cursors from database: * https://www.postgresql.org/docs/current/sql-fetch.html git-svn-id: svn://ttmath.org/publicrep/morm/trunk@1230 e52654a7-88a9-db11-a3e9-0013d4bc506e --- src/postgresqlqueryresult.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/postgresqlqueryresult.cpp b/src/postgresqlqueryresult.cpp index 4391d3e..61c3209 100644 --- a/src/postgresqlqueryresult.cpp +++ b/src/postgresqlqueryresult.cpp @@ -136,7 +136,14 @@ bool PostgreSQLQueryResult::is_null(int column_index) } - +/* + * in the future we can use single row mode: + * https://www.postgresql.org/docs/10/libpq-single-row-mode.html + * + * or just cursors from database: + * https://www.postgresql.org/docs/current/sql-fetch.html + * + */ const char * PostgreSQLQueryResult::get_value_from_result(int row, int col) { const char * value_str = nullptr;