MySQL Forums
Forum List  »  Connector/C++

unhandled type in getString() -- v1.0.5
Posted by: Dominic Froud
Date: June 22, 2009 08:55AM


I'm hoping you have some ideas on why I get the following error when calling getString() on a varchar(255) column:

MySQL_Prepared_ResultSet::getString: unhandled type. Please, report

I've tried linking statically and dynamically and both methods produce this result.

However, if I turn on tracing the program -works- and here is some of the debugging output:

# >MySQL_Prepared_ResultSet::getString(int)
# | INF: column=3
# | INF: this=0x8014530c0
# | >MySQL_ResultSet::isScrollable
# | | INF: this=0x8014530c0
# | <MySQL_ResultSet::isScrollable
# | >MySQL_Prepared_ResultSetMetaData::getColumnType
# | | INF: this=0x80140a140
# | | INF: column=3
# | | INF: type=253
# | | INF: our type is 13
# | <MySQL_Prepared_ResultSetMetaData::getColumnType
# | INF: It's a string
# <MySQL_Prepared_ResultSet::getString(int)

Any idea why it would work when I turn on tracing and not otherwise?
Could it be some sort of memory corruption?

Build platform is amd64 FreeBSD 7.1 with g++ v4.2.1



Options: ReplyQuote

Written By
unhandled type in getString() -- v1.0.5
June 22, 2009 08:55AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.