MySQL Forums
Forum List  »  Connector/C++

Re: unhandled type in getString() -- v1.0.5
Posted by: Dominic Froud
Date: June 22, 2009 01:06PM

I tried to use trunk but I had these errors using both gcc v4.2.1 and v4.5.0:

puma# make
[ 0%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/mysql_art_resultset.cpp.o
In file included from /root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.cpp:16:
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:180: error: invalid covariant return type for 'virtual sql::SQLString sql::mysql::MySQL_ArtResultSet::getString(uint32_t) const'
/usr/local/include/cppconn/resultset.h:102: error: overriding 'virtual std::string sql::ResultSet::getString(uint32_t) const'
/usr/local/include/cppconn/resultset.h:71: warning: 'virtual uint32_t sql::ResultSet::findColumn(const std::string&) const' was hidden
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:129: warning: by 'uint32_t sql::mysql::MySQL_ArtResultSet::findColumn(const sql::SQLString&) const'
/usr/local/include/cppconn/resultset.h:76: warning: 'virtual std::istream* sql::ResultSet::getBlob(const std::string&) const' was hidden
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:135: warning: by 'sql::mysql::MySQL_ArtResultSet::getBlob'
/usr/local/include/cppconn/resultset.h:79: warning: 'virtual bool sql::ResultSet::getBoolean(const std::string&) const' was hidden
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:139: warning: by 'sql::mysql::MySQL_ArtResultSet::getBoolean'
/usr/local/include/cppconn/resultset.h:82: warning: 'virtual long double sql::ResultSet::getDouble(const std::string&) const' was hidden
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:148: warning: by 'sql::mysql::MySQL_ArtResultSet::getDouble'
/usr/local/include/cppconn/resultset.h:85: warning: 'virtual int32_t sql::ResultSet::getInt(const std::string&) const' was hidden
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:156: warning: by 'sql::mysql::MySQL_ArtResultSet::getInt'
/usr/local/include/cppconn/resultset.h:88: warning: 'virtual uint32_t sql::ResultSet::getUInt(const std::string&) const' was hidden
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:160: warning: by 'sql::mysql::MySQL_ArtResultSet::getUInt'
/usr/local/include/cppconn/resultset.h:91: warning: 'virtual int64_t sql::ResultSet::getInt64(const std::string&) const' was hidden
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:164: warning: by 'sql::mysql::MySQL_ArtResultSet::getInt64'
/usr/local/include/cppconn/resultset.h:94: warning: 'virtual uint64_t sql::ResultSet::getUInt64(const std::string&) const' was hidden
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:168: warning: by 'sql::mysql::MySQL_ArtResultSet::getUInt64'
/usr/local/include/cppconn/resultset.h:103: warning: 'virtual std::string sql::ResultSet::getString(const std::string&) const' was hidden
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:182: warning: by 'sql::mysql::MySQL_ArtResultSet::getString'
/usr/local/include/cppconn/resultset.h:118: warning: 'virtual bool sql::ResultSet::isNull(const std::string&) const' was hidden
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:203: warning: by 'sql::mysql::MySQL_ArtResultSet::isNull'
In file included from /root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.cpp:17:
/root/mysql-connector-cpp/trunk/driver/mysql_art_rset_metadata.h:37: error: invalid covariant return type for 'virtual sql::SQLString sql::mysql::MySQL_ArtResultSetMetaData::getCatalogName(unsigned int)'
/usr/local/include/cppconn/resultset_metadata.h:31: error: overriding 'virtual std::string sql::ResultSetMetaData::getCatalogName(unsigned int)'
/root/mysql-connector-cpp/trunk/driver/mysql_art_rset_metadata.h:43: error: invalid covariant return type for 'virtual sql::SQLString sql::mysql::MySQL_ArtResultSetMetaData::getColumnLabel(unsigned int)'
/usr/local/include/cppconn/resultset_metadata.h:37: error: overriding 'virtual std::string sql::ResultSetMetaData::getColumnLabel(unsigned int)'
/root/mysql-connector-cpp/trunk/driver/mysql_art_rset_metadata.h:45: error: invalid covariant return type for 'virtual sql::SQLString sql::mysql::MySQL_ArtResultSetMetaData::getColumnName(unsigned int)'
/usr/local/include/cppconn/resultset_metadata.h:39: error: overriding 'virtual std::string sql::ResultSetMetaData::getColumnName(unsigned int)'
/root/mysql-connector-cpp/trunk/driver/mysql_art_rset_metadata.h:49: error: invalid covariant return type for 'virtual sql::SQLString sql::mysql::MySQL_ArtResultSetMetaData::getColumnTypeName(unsigned int)'
/usr/local/include/cppconn/resultset_metadata.h:43: error: overriding 'virtual std::string sql::ResultSetMetaData::getColumnTypeName(unsigned int)'
/root/mysql-connector-cpp/trunk/driver/mysql_art_rset_metadata.h:55: error: invalid covariant return type for 'virtual sql::SQLString sql::mysql::MySQL_ArtResultSetMetaData::getSchemaName(unsigned int)'
/usr/local/include/cppconn/resultset_metadata.h:49: error: overriding 'virtual std::string sql::ResultSetMetaData::getSchemaName(unsigned int)'
/root/mysql-connector-cpp/trunk/driver/mysql_art_rset_metadata.h:57: error: invalid covariant return type for 'virtual sql::SQLString sql::mysql::MySQL_ArtResultSetMetaData::getTableName(unsigned int)'
/usr/local/include/cppconn/resultset_metadata.h:51: error: overriding 'virtual std::string sql::ResultSetMetaData::getTableName(unsigned int)'
*** Error code 1

Stop in /root/mysql-connector-cpp/trunk.
*** Error code 1

Stop in /root/mysql-connector-cpp/trunk.
*** Error code 1

Stop in /root/mysql-connector-cpp/trunk.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: unhandled type in getString() -- v1.0.5
3557
June 22, 2009 01:06PM


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.