A few clean ups and also tested, its working fine

This commit is contained in:
BeniS 2013-03-04 01:27:07 +13:00
parent 8db85e4e3a
commit 48ac91d173
4 changed files with 4 additions and 6 deletions

View File

@ -239,7 +239,7 @@ class DBInsert
/**
* Associates with given database handler.
*
* @param Database* database wrapper
* @param DatabasePtr database wrapper
*/
DBInsert(DatabasePtr db): m_db(db), m_rows(0) {}
~DBInsert() {}

View File

@ -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
* of this software and associated documentation files (the "Software"), to deal

View File

@ -253,8 +253,6 @@ void MySQLResult::free()
}
mysql_free_result(m_resultHandle);
delete m_resultHandle;
m_resultHandle = NULL;
}

View File

@ -20,8 +20,8 @@
* THE SOFTWARE.
*/
#ifndef __DATABASE_MYSQL__
#define __DATABASE_MYSQL__
#ifndef DATABASEMYSQL_H
#define DATABASEMYSQL_H
#include "database.h"