From 73dc076d847b42313a50fc91868581ecd1b93775 Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Thu, 6 Jan 2011 15:38:08 +0100 Subject: [PATCH] fix the proper type (int) --- apps/dsm/mods/mod_mysql/ModMysql.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/dsm/mods/mod_mysql/ModMysql.cpp b/apps/dsm/mods/mod_mysql/ModMysql.cpp index 21b0bbe5..6bec11dd 100644 --- a/apps/dsm/mods/mod_mysql/ModMysql.cpp +++ b/apps/dsm/mods/mod_mysql/ModMysql.cpp @@ -254,9 +254,9 @@ EXEC_ACTION_START(SCMyExecuteAction) { mysqlpp::SimpleResult res = query.execute(); if (res) { sc_sess->CLR_ERRNO; - sc_sess->var["db.rows"] = int2str((long)res.rows()); + sc_sess->var["db.rows"] = int2str((int)res.rows()); sc_sess->var["db.info"] = res.info(); - sc_sess->var["db.insert_id"] = int2str((long)res.insert_id()); + sc_sess->var["db.insert_id"] = int2str((int)res.insert_id()); } else { sc_sess->SET_ERRNO(DSM_ERRNO_MY_QUERY); sc_sess->SET_STRERROR(res.info()); @@ -591,9 +591,9 @@ EXEC_ACTION_START(SCMyPutFileToDBAction) { mysqlpp::SimpleResult res = query.execute(); if (res) { sc_sess->CLR_ERRNO; - sc_sess->var["db.rows"] = int2str((long)res.rows()); + sc_sess->var["db.rows"] = int2str((int)res.rows()); sc_sess->var["db.info"] = res.info(); - sc_sess->var["db.insert_id"] = int2str((long)res.insert_id()); + sc_sess->var["db.insert_id"] = int2str((int)res.insert_id()); } else { sc_sess->SET_ERRNO(DSM_ERRNO_MY_QUERY); sc_sess->SET_STRERROR(res.info());