mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 16:48:06 +02:00
Fix optional JSON support for MySQL (#3753)
* Fix optional JSON support for MySQL * Fix optional JSON support for MySQLTest
This commit is contained in:
@@ -133,8 +133,10 @@ namespace
|
|||||||
case MYSQL_TYPE_LONG_BLOB:
|
case MYSQL_TYPE_LONG_BLOB:
|
||||||
case MYSQL_TYPE_BLOB:
|
case MYSQL_TYPE_BLOB:
|
||||||
return Poco::Data::MetaColumn::FDT_BLOB;
|
return Poco::Data::MetaColumn::FDT_BLOB;
|
||||||
|
#ifdef POCO_MYSQL_JSON
|
||||||
case MYSQL_TYPE_JSON:
|
case MYSQL_TYPE_JSON:
|
||||||
return Poco::Data::MetaColumn::FDT_JSON;
|
return Poco::Data::MetaColumn::FDT_JSON;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
return Poco::Data::MetaColumn::FDT_UNKNOWN;
|
return Poco::Data::MetaColumn::FDT_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
@@ -976,7 +976,9 @@ CppUnit::Test* MySQLTest::suite()
|
|||||||
CppUnit_addTest(pSuite, MySQLTest, testBLOBStmt);
|
CppUnit_addTest(pSuite, MySQLTest, testBLOBStmt);
|
||||||
CppUnit_addTest(pSuite, MySQLTest, testLongBLOB);
|
CppUnit_addTest(pSuite, MySQLTest, testLongBLOB);
|
||||||
CppUnit_addTest(pSuite, MySQLTest, testLongTEXT);
|
CppUnit_addTest(pSuite, MySQLTest, testLongTEXT);
|
||||||
|
#ifdef POCO_MYSQL_JSON
|
||||||
CppUnit_addTest(pSuite, MySQLTest, testJSON);
|
CppUnit_addTest(pSuite, MySQLTest, testJSON);
|
||||||
|
#endif
|
||||||
CppUnit_addTest(pSuite, MySQLTest, testUnsignedInts);
|
CppUnit_addTest(pSuite, MySQLTest, testUnsignedInts);
|
||||||
CppUnit_addTest(pSuite, MySQLTest, testFloat);
|
CppUnit_addTest(pSuite, MySQLTest, testFloat);
|
||||||
CppUnit_addTest(pSuite, MySQLTest, testDouble);
|
CppUnit_addTest(pSuite, MySQLTest, testDouble);
|
||||||
|
Reference in New Issue
Block a user