@@ -309,6 +309,15 @@ BOOL CDatabase::InserSoc(std::string name, std::string provider, std::string not
return FALSE;
}
+ // Ó°ÏìµÄÐÐÊý;
+ int affected_rows = mysql_stmt_affected_rows(stmt);
+ if (affected_rows != 1)
+ return FALSE;
+
+ // Close the statement;
+ if (mysql_stmt_close(stmt))
return TRUE;
#endif