diff options
author | Olivier Bertrand <bertrandop@gmail.com> | 2019-10-16 17:40:49 +0200 |
---|---|---|
committer | Olivier Bertrand <bertrandop@gmail.com> | 2019-10-16 17:40:49 +0200 |
commit | b56589eaf2c7dcaabcacfddd05fde44023287f29 (patch) | |
tree | 888c1c3c5f9ed1b03436d46191ebb2866e1a311d /storage/connect/tabodbc.cpp | |
parent | 425dc6d66f8c9786bb678527e4aa973da724d71b (diff) | |
download | mariadb-git-b56589eaf2c7dcaabcacfddd05fde44023287f29.tar.gz |
Some small changes.
===================
- Fix unhandled throws, add some trace + typo
modified: storage/connect/jdbconn.cpp
modified: storage/connect/tabodbc.cpp
modified: storage/connect/valblk.cpp
modified: storage/connect/value.cpp
Diffstat (limited to 'storage/connect/tabodbc.cpp')
-rw-r--r-- | storage/connect/tabodbc.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/storage/connect/tabodbc.cpp b/storage/connect/tabodbc.cpp index 0fa117c3d2f..ba5c65e2c94 100644 --- a/storage/connect/tabodbc.cpp +++ b/storage/connect/tabodbc.cpp @@ -605,8 +605,10 @@ bool TDBODBC::OpenDB(PGLOBAL g) Cnp->InitValue(g); if ((n = Ocp->GetResultSize(Query->GetStr(), Cnp)) < 0) { - strcpy(g->Message, "Cannot get result size"); - return true; + char* msg = PlugDup(g, g->Message); + + sprintf(g->Message, "Get result size: %s (rc=%d)", msg, n); + return true; } else if (n) { Ocp->m_Rows = n; |