анализ создает предупреждение в Subj.
Любое предложение?
const char *cString = [query UTF8String];
unsigned long long affectedRows;
if (self.sqlPut != NULL) {
mysql_query(self.sqlPut,cString);
affectedRows = mysql_affected_rows(self.sqlPut);
if (affectedRows == 0) NSLog(@"MYSQL: Query: %@ was failed with error:%s\n and error number:%d",query,mysql_error(self.sqlPut),mysql_errno(self.sqlPut));
}
else {
[self mysqlConnect];
if (sqlPut != NULL) {
mysql_query(self.sqlPut,cString);
affectedRows = mysql_affected_rows(self.sqlPut);
if (affectedRows == 0) NSLog(@"MYSQL: Query: %@ was failed with error:%s\n and error number:%d",query,mysql_error(self.sqlPut),mysql_errno(self.sqlPut));
}
}
NSNumber *affectedRowsNumber = [[[NSNumber alloc] initWithUnsignedLongLong:affectedRows] autorelease];
return affectedRowsNumber;