diff options
-rw-r--r-- | mysqlc/source/mysqlc_resultset.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mysqlc/source/mysqlc_resultset.cxx b/mysqlc/source/mysqlc_resultset.cxx index b2793adff6c8..d9160ff253bc 100644 --- a/mysqlc/source/mysqlc_resultset.cxx +++ b/mysqlc/source/mysqlc_resultset.cxx @@ -179,7 +179,13 @@ sal_Int32 SAL_CALL OResultSet::findColumn(const OUString& columnName) } catch (const sql::SQLException &e) { mysqlc_sdbc_driver::translateAndThrow(e, *this, m_encoding); } - return 0; + throw SQLException( + "The column name '" + columnName + "' is not valid.", + *this, + OUString("42S22"), + 0, + Any() + ); } /* }}} */ |