GH #192: Unsigned integer values not handled properly in result sets

This commit is contained in:
Cameron Smith
2013-06-07 15:14:18 -04:00
parent 83ad8b36f5
commit 07f33b729a
8 changed files with 58 additions and 12 deletions

View File

@@ -471,6 +471,15 @@ void MySQLTest::testBLOBStmt()
}
void MySQLTest::testUnsignedInts()
{
if (!_pSession) fail ("Test not available.");
recreateUnsignedIntsTable();
_pExecutor->unsignedInts();
}
void MySQLTest::testFloat()
{
if (!_pSession) fail ("Test not available.");
@@ -755,6 +764,15 @@ void MySQLTest::recreateStringsTable()
}
void MySQLTest::recreateUnsignedIntsTable()
{
dropTable("Strings");
try { *_pSession << "CREATE TABLE Strings (str INTEGER UNSIGNED)", now; }
catch(ConnectionException& ce){ std::cout << ce.displayText() << std::endl; fail ("recreateUnsignedIntegersTable()"); }
catch(StatementException& se){ std::cout << se.displayText() << std::endl; fail ("recreateUnsignedIntegersTable()"); }
}
void MySQLTest::recreateFloatsTable()
{
dropTable("Strings");