Lines Matching refs:i

80 		int i;  in pdo_mysql_stmt_dtor()  local
81 for (i = 0; i < stmt->column_count; i++) { in pdo_mysql_stmt_dtor()
82 pdo_free_bound_result(S->bound_result[i]); in pdo_mysql_stmt_dtor()
183 int i; in pdo_mysql_stmt_execute_prepared_libmysql() local
191 int i; in pdo_mysql_stmt_execute_prepared_libmysql() local
192 for (i = 0; i < stmt->column_count; i++) { in pdo_mysql_stmt_execute_prepared_libmysql()
193 efree(S->bound_result[i].buffer); in pdo_mysql_stmt_execute_prepared_libmysql()
206 for (i = 0; i < stmt->column_count; i++) { in pdo_mysql_stmt_execute_prepared_libmysql()
207 if (calc_max_length && S->fields[i].type == FIELD_TYPE_BLOB) { in pdo_mysql_stmt_execute_prepared_libmysql()
212 switch (S->fields[i].type) { in pdo_mysql_stmt_execute_prepared_libmysql()
214 S->bound_result[i].buffer_length = MAX_MEDIUMINT_WIDTH + 1; in pdo_mysql_stmt_execute_prepared_libmysql()
217 S->bound_result[i].buffer_length = MAX_INT_WIDTH + 1; in pdo_mysql_stmt_execute_prepared_libmysql()
220 S->bound_result[i].buffer_length = MAX_BIGINT_WIDTH + 1; in pdo_mysql_stmt_execute_prepared_libmysql()
223 S->bound_result[i].buffer_length = MAX_TINYINT_WIDTH + 1; in pdo_mysql_stmt_execute_prepared_libmysql()
226 S->bound_result[i].buffer_length = MAX_SMALLINT_WIDTH + 1; in pdo_mysql_stmt_execute_prepared_libmysql()
229 S->bound_result[i].buffer_length = in pdo_mysql_stmt_execute_prepared_libmysql()
230 S->fields[i].max_length? S->fields[i].max_length: in pdo_mysql_stmt_execute_prepared_libmysql()
231 S->fields[i].length; in pdo_mysql_stmt_execute_prepared_libmysql()
233 if (S->bound_result[i].buffer_length > H->max_buffer_size) { in pdo_mysql_stmt_execute_prepared_libmysql()
234 S->bound_result[i].buffer_length = H->max_buffer_size; in pdo_mysql_stmt_execute_prepared_libmysql()
242 …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()
243 S->bound_result[i].buffer_length = 128; in pdo_mysql_stmt_execute_prepared_libmysql()
246 S->out_length[i] = 0; in pdo_mysql_stmt_execute_prepared_libmysql()
248 S->bound_result[i].buffer = emalloc(S->bound_result[i].buffer_length); in pdo_mysql_stmt_execute_prepared_libmysql()
249 S->bound_result[i].is_null = &S->out_null[i]; in pdo_mysql_stmt_execute_prepared_libmysql()
250 S->bound_result[i].length = &S->out_length[i]; in pdo_mysql_stmt_execute_prepared_libmysql()
251 S->bound_result[i].buffer_type = MYSQL_TYPE_STRING; in pdo_mysql_stmt_execute_prepared_libmysql()
277 int i; in pdo_mysql_stmt_execute_prepared_mysqlnd() local
294 for (i = 0; i < stmt->column_count; i++) { in pdo_mysql_stmt_execute_prepared_mysqlnd()
295 mysqlnd_stmt_bind_one_result(S->stmt, i); in pdo_mysql_stmt_execute_prepared_mysqlnd()
375 int i; in pdo_mysql_stmt_next_rowset() local
378 for (i = 0; i < stmt->column_count; i++) { in pdo_mysql_stmt_next_rowset()
379 mysqlnd_stmt_bind_one_result(S->stmt, i); in pdo_mysql_stmt_next_rowset()
658 int i; local
677 for (i = 0; i < stmt->column_count; i++) {
681 namelen = spprintf(&cols[i].name, 0, "%s.%s", S->fields[i].table, S->fields[i].name);
682 cols[i].namelen = namelen;
684 namelen = strlen(S->fields[i].name);
685 cols[i].namelen = namelen;
686 cols[i].name = estrndup(S->fields[i].name, namelen);
689 cols[i].precision = S->fields[i].decimals;
690 cols[i].maxlen = S->fields[i].length;
694 cols[i].param_type = PDO_PARAM_ZVAL;
698 cols[i].param_type = PDO_PARAM_STR;