Commit 2bf76ddd authored by Legodev's avatar Legodev

ADDED: dump query to debug log

parent edd335d1
......@@ -18,7 +18,7 @@
#ifndef SOURCE_CONSTANTS_HPP_
#define SOURCE_CONSTANTS_HPP_
#define DLLVERSIONSTRING "[1,0,3,3]"
#define DLLVERSIONSTRING "[1,0,3,4]"
#define CONFIG_FILE_NAME "libredex.cfg"
/*
......
......@@ -379,6 +379,11 @@ void mysql_db_handler::returnconnection(MYSQL * connection) {
void mysql_db_handler::rawquery(std::string query) {
MYSQL *connection = getconnection();
#ifdef DEBUG
testfile << "QUERY: " << query << std::endl;
testfile.flush();
#endif
if (mysql_real_query(connection, query.c_str(), query.size())) {
throw std::runtime_error(
"error while executing query: "
......@@ -394,6 +399,11 @@ void mysql_db_handler::rawquery(std::string query) {
void mysql_db_handler::rawquery(std::string query, MYSQL_RES **result) {
MYSQL *connection = getconnection();
#ifdef DEBUG
testfile << "QUERY " << query << std::endl;
testfile.flush();
#endif
if (mysql_real_query(connection, query.c_str(), query.size())) {
throw std::runtime_error(
"error while executing query: "
......@@ -420,6 +430,11 @@ void mysql_db_handler::preparedStatementQuery(std::string query, MYSQL_BIND inpu
MYSQL *connection = getconnection();
int status;
#ifdef DEBUG
testfile << "QUERY " << query << std::endl;
testfile.flush();
#endif
MYSQL_STMT *stmt;
stmt = mysql_stmt_init(connection);
if (!stmt)
......
......@@ -2,8 +2,8 @@
#define PRODUCT_NAME_STR "libredex"
#define PRODUCT_DESCRIPTION "Desolation Redux Arma3 callExtension"
#define VER_VERSION 1,0,3,3
#define VER_VERSION_STR "1.0.3.3"
#define VER_VERSION 1,0,3,4
#define VER_VERSION_STR "1.0.3.4"
VS_VERSION_INFO VERSIONINFO
FILEVERSION VER_VERSION
......
......@@ -31,5 +31,5 @@ cd ..
cd ../Binaries
mkdir -p Windows/Release/
mkdir -p Linux/Release/
cp libredex*.dll Windows/Release/
cp libredex*.so Linux/Release/
mv libredex*.dll Windows/Release/
mv libredex*.so Linux/Release/
......@@ -31,5 +31,5 @@ cd ..
cd ../Binaries
mkdir -p Windows/Debug/
mkdir -p Linux/Debug/
cp libredex*.dll Windows/Debug/
cp libredex*.so Linux/Debug/
mv libredex*.dll Windows/Debug/
mv libredex*.so Linux/Debug/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment