A few clean ups and also tested, its working fine
This commit is contained in:
parent
8db85e4e3a
commit
48ac91d173
|
@ -239,7 +239,7 @@ class DBInsert
|
||||||
/**
|
/**
|
||||||
* Associates with given database handler.
|
* Associates with given database handler.
|
||||||
*
|
*
|
||||||
* @param Database* database wrapper
|
* @param DatabasePtr database wrapper
|
||||||
*/
|
*/
|
||||||
DBInsert(DatabasePtr db): m_db(db), m_rows(0) {}
|
DBInsert(DatabasePtr db): m_db(db), m_rows(0) {}
|
||||||
~DBInsert() {}
|
~DBInsert() {}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2010-2012 OTClient <https://github.com/edubart/otclient>
|
* Copyright (c) 2010-2013 OTClient <https://github.com/edubart/otclient>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
|
@ -253,8 +253,6 @@ void MySQLResult::free()
|
||||||
}
|
}
|
||||||
|
|
||||||
mysql_free_result(m_resultHandle);
|
mysql_free_result(m_resultHandle);
|
||||||
|
|
||||||
delete m_resultHandle;
|
|
||||||
m_resultHandle = NULL;
|
m_resultHandle = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __DATABASE_MYSQL__
|
#ifndef DATABASEMYSQL_H
|
||||||
#define __DATABASE_MYSQL__
|
#define DATABASEMYSQL_H
|
||||||
|
|
||||||
#include "database.h"
|
#include "database.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue