sqldata/sqldb.cpp
// Execute the statement that does not return any result
Execute the statement that does not return any result
Execute the statement that does not return any result
int SqlDb::ExecuteNonQuery(int db_types, SqlDataReply &reply, const char *query)
{
	if(db_types == SQLDB_TARGET_ONLY)
	{
		reply.rc = _target_ca.db_api->ExecuteNonQuery(query, &reply._t_time_spent);
		if(reply.rc == -1)
		{
			reply.t_error = _target_ca.db_api->GetError();
			strcpy(reply.t_native_error_text, _target_ca.db_api->GetNativeErrorText());
		}
	}
	return reply.rc;
}
int SqlDb :: ExecuteNonQuery ( int db_types , SqlDataReply & reply , const char * query ) { if ( db_types == SQLDB_TARGET_ONLY ) { reply . rc = _target_ca . db_api -> ExecuteNonQuery ( query , & reply . _t_time_spent ) ; if ( reply . rc == -1 ) { reply . t_error = _target_ca . db_api -> GetError ( ) ; strcpy ( reply . t_native_error_text , _target_ca . db_api -> GetNativeErrorText ( ) ) ; } } return reply . rc ; }
Execute the statement that does not return any result
Execute the statement that does not return any result