I've written a couple of wrapper classes for ODBC, and I'm using the << operator in a test application.
while(resultSet->fetchNext())
{
std::cout << "ID " << resultSet->getUInt32(1) << ", " << resultSet->getString(2) << "\n";
}
This is causing an ODBC error, and I believe it's because the API requires me to access columns in increasing order.. column 1, column 2, etc.
I can see that the code is actually calling the get...() methods from right to left, which is the complete opposite of what I've always assumed...
Does anyone know a way of making it call from 'left to right' instead, without splitting into multiple lines?
Many thanks for any suggestions!