List:Internals« Previous MessageNext Message »
From:Joseph Lukas Date:July 7 2009 7:48pm
Subject:Not entering the loop - per query variables
View as plain text  
I am having an issues getting through my loop for the List.

int sql_statement_set(THD *thd, List<set_var_base> *var_list){

	  List_iterator_fast<set_var_base> it(*var_list);
	  DBUG_ENTER("sql_set_variables");
	  int count = 0;
	  set_var_base *var;
	  while ((var=it++))
	  {
	    count++;
	    printf("I looped");
	  }
	  printf("The number of objects is: %d \n",count);
return 0;
}

Is my current structure of my function.  The main issue seems to be  
that I am not even entering the loop at all it seems. I just get "The  
number of objects is: 0" I used as a template the suggested function  
sql_set_variables().  Still I do not see on my test launch why I will  
not enter the loop.   The parser debug output shows it went  
successfully through the parse and yet nothing. 
Thread
Not entering the loop - per query variablesJoseph Lukas7 Jul
  • Re: Not entering the loop - per query variablesSergei Golubchik7 Jul
    • Re: Not entering the loop - per query variablesJoerg Bruehe8 Jul
      • Re: Not entering the loop - per query variablesTor Didriksen8 Jul