Lines Matching refs:col_count

57 uint col_count= 0;  variable
93 strcpy(sql_field[col_count].db_name,(char*)field->db_name); in sql_field_metadata()
94 strcpy(sql_field[col_count].table_name,(char*)field->table_name); in sql_field_metadata()
95 strcpy(sql_field[col_count].org_table_name,(char*)field->org_table_name); in sql_field_metadata()
96 strcpy(sql_field[col_count].col_name,(char*)field->col_name); in sql_field_metadata()
97 strcpy(sql_field[col_count].org_col_name,(char*)field->org_col_name); in sql_field_metadata()
98 sql_field[col_count].length= field->length; in sql_field_metadata()
99 sql_field[col_count].charsetnr= field->charsetnr; in sql_field_metadata()
100 sql_field[col_count].flags= field->flags; in sql_field_metadata()
101 sql_field[col_count].decimals= field->decimals; in sql_field_metadata()
102 sql_field[col_count].type= field->type; in sql_field_metadata()
103 col_count++; in sql_field_metadata()
117 col_count= 0; in sql_start_row()
129 col_count= 0; in sql_abort_row()
147 test_int[col_count][row_count]= value; in sql_get_integer()
148 col_count++; in sql_get_integer()
157 test_longlong[col_count][row_count]= value; in sql_get_longlong()
158 test_is_unsigned[col_count][row_count]= is_unsigned; in sql_get_longlong()
159 col_count++; in sql_get_longlong()
172 test_decimal[col_count][row_count].intg= value->intg; in sql_get_decimal()
173 test_decimal[col_count][row_count].frac= value->frac; in sql_get_decimal()
174 test_decimal[col_count][row_count].len = value->len ; in sql_get_decimal()
175 test_decimal[col_count][row_count].sign= value->sign; in sql_get_decimal()
176 memset((void*)test_decimal[col_count][row_count].buf, '\0',(int)value->len); in sql_get_decimal()
177 memcpy((void*)test_decimal[col_count][row_count].buf, (void*)value->buf,(int)value->len); in sql_get_decimal()
180 col_count++; in sql_get_decimal()
188 test_double[col_count][row_count]= value; in sql_get_double()
189 test_decimals[col_count][row_count]= decimals; in sql_get_double()
190 col_count++; in sql_get_double()
204 test_date[col_count][row_count].year= value->year; in sql_get_date()
205 test_date[col_count][row_count].month= value->month; in sql_get_date()
206 test_date[col_count][row_count].day= value->day; in sql_get_date()
208 test_date[col_count][row_count].hour= value->hour; in sql_get_date()
209 test_date[col_count][row_count].minute= value->minute; in sql_get_date()
210 test_date[col_count][row_count].second= value->second; in sql_get_date()
211 test_date[col_count][row_count].second_part= value->second_part; in sql_get_date()
212 test_date[col_count][row_count].neg= value->neg; in sql_get_date()
213 col_count++; in sql_get_date()
228 test_time[col_count][row_count].year= value->year; in sql_get_time()
229 test_time[col_count][row_count].month= value->month; in sql_get_time()
230 test_time[col_count][row_count].day= value->day; in sql_get_time()
232 test_time[col_count][row_count].hour= value->hour; in sql_get_time()
233 test_time[col_count][row_count].minute= value->minute; in sql_get_time()
234 test_time[col_count][row_count].second= value->second; in sql_get_time()
235 test_time[col_count][row_count].second_part= value->second_part; in sql_get_time()
236 test_time[col_count][row_count].neg= value->neg; in sql_get_time()
237 test_time[col_count][row_count].decimals= decimals; in sql_get_time()
238 col_count++; in sql_get_time()
253 test_datetime[col_count][row_count].year= value->year; in sql_get_datetime()
254 test_datetime[col_count][row_count].month= value->month; in sql_get_datetime()
255 test_datetime[col_count][row_count].day= value->day; in sql_get_datetime()
257 test_datetime[col_count][row_count].hour= value->hour; in sql_get_datetime()
258 test_datetime[col_count][row_count].minute= value->minute; in sql_get_datetime()
259 test_datetime[col_count][row_count].second= value->second; in sql_get_datetime()
260 test_datetime[col_count][row_count].second_part= value->second_part; in sql_get_datetime()
261 test_datetime[col_count][row_count].neg= value->neg; in sql_get_datetime()
262 test_datetime[col_count][row_count].decimals= decimals; in sql_get_datetime()
263 col_count++; in sql_get_datetime()
273 strncpy(sql_str_value[col_count][row_count],value,length); in sql_get_string()
274 sql_str_len[col_count][row_count]= length; in sql_get_string()
275 col_count++; in sql_get_string()
388 for (uint col_count=0;col_count < sql_num_cols;col_count++){ in get_data_str() local
389 WRITE_VAL("%s ",sql_field[col_count].col_name); in get_data_str()
392 for (uint col_count=0;col_count < sql_num_cols;col_count++){ in get_data_str() local
393 WRITE_VAL_2("%s(%u) ", fieldtype2str(sql_field[col_count].type), in get_data_str()
394 sql_field[col_count].type); in get_data_str()
399 for (uint col_count=0;col_count < sql_num_cols;col_count++){ in get_data_str() local
400 WRITE_VAL("%s ",sql_str_value[col_count][row_count]); in get_data_str()