mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 19:10:20 +01:00
MySQL fixes/additions/improvements
- fixed GH #187: MySQL: allow access to the underlying connection handle - added GH #186: MySQL: support for MYSQL_SECURE_AUTH - fixed GH #174: MySQL: 4GB allocated when reading any largetext or largeblob field
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
|
||||
#include <mysql.h>
|
||||
#include <iostream>
|
||||
#include <limits>
|
||||
|
||||
|
||||
using namespace Poco::Data;
|
||||
@@ -500,8 +501,8 @@ void SQLExecutor::insertSingleBulk()
|
||||
void SQLExecutor::unsignedInts()
|
||||
{
|
||||
std::string funct = "unsignedInts()";
|
||||
unsigned int data = UINT32_MAX;
|
||||
unsigned int ret = 0;
|
||||
Poco::UInt32 data = std::numeric_limits<Poco::UInt32>::max();
|
||||
Poco::UInt32 ret = 0;
|
||||
|
||||
try { *_pSession << "INSERT INTO Strings VALUES (?)", use(data), now; }
|
||||
catch(ConnectionException& ce){ std::cout << ce.displayText() << std::endl; fail (funct); }
|
||||
@@ -1362,7 +1363,7 @@ void SQLExecutor::time()
|
||||
}
|
||||
|
||||
|
||||
void SQLExecutor::blob(int bigSize)
|
||||
void SQLExecutor::blob(unsigned int bigSize)
|
||||
{
|
||||
std::string funct = "blob()";
|
||||
std::string lastName("lastname");
|
||||
|
||||
Reference in New Issue
Block a user