core._bowler._wicket));

		// Check if list is not empty and build query.
		if (params.size())
		{
			std::string query = "INSERT INTO match_bowler (match_id";
			std::string paramString; // Names of the columns to be filled.
			std::string valueString; // Values to be added.
			for (param_t::iterator paramIt = params.begin(); paramIt != params.end(); paramIt++)
			{
				// Add only if value is not empty string.
				if (paramIt->second.size())
				{
					paramString += ", " + paramIt->first;
					valueString += ", " + paramIt->second;
				}
			}
			query += paramString + ") VALUES (" + _match_id + valueString + ");";
			if (valueString.size())
				result.push_back(query);
		}
	}

	if (_matchMiniscore._nsBowler._isInitialized)
	{
		param_t params;
		if (_matchMiniscore._nsBowler._fullName.size())
			params.push_back(std::make_pair("name", "'" + _matchMiniscore._nsBowler._fullName + "'"));
		if (_matchMiniscore._nsBowler._fullName.size())
			params.push_back(std::make_pair("over", _matchMiniscore._nsBowler._overs));
		if (_matchMiniscore._nsBowler._fullName.size())
			params.push_back(std::make_pair("maidens", _matchMiniscore._nsBowler._maidens));
		if (_matchMiniscore._nsBowler._fullName.size())
			params.push_back(std::make_pair("runs", _matchMiniscore._nsBowler._runs));
		if (_matchMiniscore._nsBowler._fullName.size())
			params.push_back(std::make_pair("wicket", _matchMiniscore._nsBowler._wicket));

		// Check if list is not empty and build query.
		if (params.size())
		{
			std::string query = "INSERT INTO match_nsbowler (match_id";
			std::string paramString; // Names of the columns to be filled.
			std::string valueString; // Values to be added.
			for (param_t::iterator paramIt = params.begin(); paramIt != params.end(); paramIt++)
			{
				// Add only if value is not empty string.
				if (paramIt->second.size())
				{
					paramString += ", " + paramIt->first;
					valueString += ", " + paramIt->second;
				}
			}
			query += paramString + ") VALUES (" + _match_id + valueString + ");";
			if (valueString.si#-------------------------------------------------
#
# Project created by QtCreator 2013-08-23T17:14:53
#
#-------------------------------------------------

QT       += core
QT       += network
QT       -= gui
#QT       += testlib

TARGET = PER_Calc
CONFIG   += console
CONFIG   -= app_bundle

#link google protocol buffer

LIBS += -L$$PWD/lib -lprotobuf
#LIBS += -L C:/Users/vpy/Desktop/PER_Tool/protobuf-2.4.1/src
LIBS += -L G:/setuptoolpc_nanoLES/protobuf-2.4.1/src
#INCLUDEPATH += C:/Users/vpy/Desktop/PER_Tool/protobuf-2.4.1/src
INCLUDEPATH += G:/setuptoolpc_nanoLES/protobuf-2.4.1/src


TEMPLATE = app

SOURCES += main.cpp \
    client.cpp \
    protocol/rssiportv10.pb.cc

HEADERS += \
    client.h \
    protocol/rssiportv10.pb.h
