Lines Matching refs:i

85 		int i;  in pdo_mysql_stmt_dtor()  local
86 for (i = 0; i < stmt->column_count; i++) { in pdo_mysql_stmt_dtor()
87 pdo_free_bound_result(S->bound_result[i]); in pdo_mysql_stmt_dtor()
189 int i; in pdo_mysql_stmt_execute_prepared_libmysql() local
197 int i; in pdo_mysql_stmt_execute_prepared_libmysql() local
198 for (i = 0; i < stmt->column_count; i++) { in pdo_mysql_stmt_execute_prepared_libmysql()
199 efree(S->bound_result[i].buffer); in pdo_mysql_stmt_execute_prepared_libmysql()
212 for (i = 0; i < stmt->column_count; i++) { in pdo_mysql_stmt_execute_prepared_libmysql()
213 if (calc_max_length && S->fields[i].type == FIELD_TYPE_BLOB) { in pdo_mysql_stmt_execute_prepared_libmysql()
218 switch (S->fields[i].type) { in pdo_mysql_stmt_execute_prepared_libmysql()
220 S->bound_result[i].buffer_length = MAX_MEDIUMINT_WIDTH + 1; in pdo_mysql_stmt_execute_prepared_libmysql()
223 S->bound_result[i].buffer_length = MAX_INT_WIDTH + 1; in pdo_mysql_stmt_execute_prepared_libmysql()
226 S->bound_result[i].buffer_length = MAX_BIGINT_WIDTH + 1; in pdo_mysql_stmt_execute_prepared_libmysql()
229 S->bound_result[i].buffer_length = MAX_TINYINT_WIDTH + 1; in pdo_mysql_stmt_execute_prepared_libmysql()
232 S->bound_result[i].buffer_length = MAX_SMALLINT_WIDTH + 1; in pdo_mysql_stmt_execute_prepared_libmysql()
235 S->bound_result[i].buffer_length = in pdo_mysql_stmt_execute_prepared_libmysql()
236 S->fields[i].max_length? S->fields[i].max_length: in pdo_mysql_stmt_execute_prepared_libmysql()
237 S->fields[i].length; in pdo_mysql_stmt_execute_prepared_libmysql()
239 if (S->bound_result[i].buffer_length > H->max_buffer_size) { in pdo_mysql_stmt_execute_prepared_libmysql()
240 S->bound_result[i].buffer_length = H->max_buffer_size; in pdo_mysql_stmt_execute_prepared_libmysql()
248 …if (S->fields[i].max_length == 0 && S->bound_result[i].buffer_length < 128 && MYSQL_TYPE_VAR_STRIN… in pdo_mysql_stmt_execute_prepared_libmysql()
249 S->bound_result[i].buffer_length = 128; in pdo_mysql_stmt_execute_prepared_libmysql()
252 S->out_length[i] = 0; in pdo_mysql_stmt_execute_prepared_libmysql()
254 S->bound_result[i].buffer = emalloc(S->bound_result[i].buffer_length); in pdo_mysql_stmt_execute_prepared_libmysql()
255 S->bound_result[i].is_null = &S->out_null[i]; in pdo_mysql_stmt_execute_prepared_libmysql()
256 S->bound_result[i].length = &S->out_length[i]; in pdo_mysql_stmt_execute_prepared_libmysql()
257 S->bound_result[i].buffer_type = MYSQL_TYPE_STRING; in pdo_mysql_stmt_execute_prepared_libmysql()
283 int i; in pdo_mysql_stmt_execute_prepared_mysqlnd() local
300 for (i = 0; i < stmt->column_count; i++) { in pdo_mysql_stmt_execute_prepared_mysqlnd()
301 mysqlnd_stmt_bind_one_result(S->stmt, i); in pdo_mysql_stmt_execute_prepared_mysqlnd()
385 int i; in pdo_mysql_stmt_next_rowset() local
388 for (i = 0; i < stmt->column_count; i++) { in pdo_mysql_stmt_next_rowset()
389 mysqlnd_stmt_bind_one_result(S->stmt, i); in pdo_mysql_stmt_next_rowset()
681 int i; local
700 for (i = 0; i < stmt->column_count; i++) {
704 namelen = spprintf(&cols[i].name, 0, "%s.%s", S->fields[i].table, S->fields[i].name);
705 cols[i].namelen = namelen;
707 namelen = strlen(S->fields[i].name);
708 cols[i].namelen = namelen;
709 cols[i].name = estrndup(S->fields[i].name, namelen);
712 cols[i].precision = S->fields[i].decimals;
713 cols[i].maxlen = S->fields[i].length;
717 cols[i].param_type = PDO_PARAM_ZVAL;
721 cols[i].param_type = PDO_PARAM_STR;