diff --git a/src/framework/sql/database.h b/src/framework/sql/database.h index 8161cdd5..9b189877 100644 --- a/src/framework/sql/database.h +++ b/src/framework/sql/database.h @@ -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() {} diff --git a/src/framework/sql/declarations.h b/src/framework/sql/declarations.h index 8111389a..9df1d34f 100644 --- a/src/framework/sql/declarations.h +++ b/src/framework/sql/declarations.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010-2012 OTClient + * Copyright (c) 2010-2013 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 diff --git a/src/framework/sql/mysql.cpp b/src/framework/sql/mysql.cpp index 7d6164ac..2d127f20 100644 --- a/src/framework/sql/mysql.cpp +++ b/src/framework/sql/mysql.cpp @@ -253,8 +253,6 @@ void MySQLResult::free() } mysql_free_result(m_resultHandle); - - delete m_resultHandle; m_resultHandle = NULL; } diff --git a/src/framework/sql/mysql.h b/src/framework/sql/mysql.h index 74c57875..5a90a207 100644 --- a/src/framework/sql/mysql.h +++ b/src/framework/sql/mysql.h @@ -20,8 +20,8 @@ * THE SOFTWARE. */ -#ifndef __DATABASE_MYSQL__ -#define __DATABASE_MYSQL__ +#ifndef DATABASEMYSQL_H +#define DATABASEMYSQL_H #include "database.h"