Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
Removed unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
kami- committed Oct 27, 2017
1 parent 9071e22 commit 877d395
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/sql.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@
#include "my_global.h"
#include "mysql.h"


#define ESCAPE_BUFFER_MAX_STRING_LENGTH 350

namespace r3 {
namespace sql {

namespace {
std::string host, database, user, password;
uint32_t port;
MYSQL* connection;
char escapeBuffer[ESCAPE_BUFFER_MAX_STRING_LENGTH * 2 + 1]; // vehicle_positions.cargo is the biggest string field with varchar(350). According to the docs of mysql_real_escape_string, we need length * 2 + 1 bytes for the buffer.
std::mutex sessionMutex;
Expand Down

0 comments on commit 877d395

Please sign in to comment.