MySQL Forums
Forum List  »  Source, Builds, Binaries

Is this bug ? in SQLString.h ( C++ connector )
Posted by: Kazuhiko Nakayama
Date: March 20, 2016 02:54AM

Hi All

here is the code from "cppconn/sqlstring.h" in MySQL C++ connector code.
There is the code at most bottom line.
I have trouble with the code, because I can not compile this parts.

then, I have to modify from "original code" to "modified code".
Please confirm If original code is ok ??

Now, I passed compile. then, I am happy. but if it need to correct,
I want to ask some professional of MySQL...

thank you


============== Original code ===================================

}// namespace sql
namespace std
{
// operator << for SQLString output
inline ostream & operator << (ostream & os, const sql::SQLString & str )
{
return os << str.asStdString();
}
}
#endif

============== Modified code ===================================


using namespace std;

// operator << for SQLString output
inline ostream & operator << (ostream & os, const sql::SQLString & str )
{
return os << str.asStdString();
}


}// namespace sql
#endif

Options: ReplyQuote


Subject
Views
Written By
Posted
Is this bug ? in SQLString.h ( C++ connector )
1126
March 20, 2016 02:54AM


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.