From aa0af8af00a01a51f6042d03148a14206018b94a Mon Sep 17 00:00:00 2001 From: Howard Butler Date: Tue, 2 Oct 2012 15:54:47 -0500 Subject: [PATCH] make the error message when attempting to describe a column of unknown type more substantial --- src/backends/postgresql/statement.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/backends/postgresql/statement.cpp b/src/backends/postgresql/statement.cpp index 4f900f463..d681ae1d0 100644 --- a/src/backends/postgresql/statement.cpp +++ b/src/backends/postgresql/statement.cpp @@ -528,7 +528,12 @@ void postgresql_statement_backend::describe_column(int colNum, data_type & type, break; default: - throw soci_error("Unknown data type."); + { + std::stringstream message; + message << "unknown data type with typelem: " << typeOid << " for colNum: " << colNum << " with name: " << PQfname(result_, pos); + throw soci_error(message.str()); + + } } columnName = PQfname(result_, pos);