sql errno fix

This commit is contained in:
SJ
2014-07-10 11:54:37 +02:00
parent 0ff5ab90a4
commit 8b9ea09144
4 changed files with 9 additions and 10 deletions

View File

@@ -7,6 +7,7 @@
#ifdef NEED_MYSQL
#include <mysql.h>
#include <mysqld_error.h>
#endif
#ifdef NEED_PSQL
#include <libpq-fe.h>
@@ -211,9 +212,9 @@ struct session_data {
char ms_journal;
char import;
int journal_envelope_length, journal_bottom_length;
unsigned int sql_errno;
#ifdef NEED_MYSQL
MYSQL mysql;
unsigned int mysql_errno;
#endif
#ifdef NEED_PSQL
PGconn *psql;