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()
184 int i; in pdo_mysql_stmt_execute_prepared_libmysql() local
192 int i; in pdo_mysql_stmt_execute_prepared_libmysql() local
193 for (i = 0; i < stmt->column_count; i++) { in pdo_mysql_stmt_execute_prepared_libmysql()
194 efree(S->bound_result[i].buffer); in pdo_mysql_stmt_execute_prepared_libmysql()
207 for (i = 0; i < stmt->column_count; i++) { in pdo_mysql_stmt_execute_prepared_libmysql()
208 if (calc_max_length && S->fields[i].type == FIELD_TYPE_BLOB) { in pdo_mysql_stmt_execute_prepared_libmysql()
213 switch (S->fields[i].type) { in pdo_mysql_stmt_execute_prepared_libmysql()
215 S->bound_result[i].buffer_length = MAX_MEDIUMINT_WIDTH + 1; in pdo_mysql_stmt_execute_prepared_libmysql()
218 S->bound_result[i].buffer_length = MAX_INT_WIDTH + 1; in pdo_mysql_stmt_execute_prepared_libmysql()
221 S->bound_result[i].buffer_length = MAX_BIGINT_WIDTH + 1; in pdo_mysql_stmt_execute_prepared_libmysql()
224 S->bound_result[i].buffer_length = MAX_TINYINT_WIDTH + 1; in pdo_mysql_stmt_execute_prepared_libmysql()
227 S->bound_result[i].buffer_length = MAX_SMALLINT_WIDTH + 1; in pdo_mysql_stmt_execute_prepared_libmysql()
230 S->bound_result[i].buffer_length = in pdo_mysql_stmt_execute_prepared_libmysql()
231 S->fields[i].max_length? S->fields[i].max_length: in pdo_mysql_stmt_execute_prepared_libmysql()
232 S->fields[i].length; in pdo_mysql_stmt_execute_prepared_libmysql()
234 if (S->bound_result[i].buffer_length > H->max_buffer_size) { in pdo_mysql_stmt_execute_prepared_libmysql()
235 S->bound_result[i].buffer_length = H->max_buffer_size; in pdo_mysql_stmt_execute_prepared_libmysql()
243 …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()
244 S->bound_result[i].buffer_length = 128; in pdo_mysql_stmt_execute_prepared_libmysql()
247 S->out_length[i] = 0; in pdo_mysql_stmt_execute_prepared_libmysql()
249 S->bound_result[i].buffer = emalloc(S->bound_result[i].buffer_length); in pdo_mysql_stmt_execute_prepared_libmysql()
250 S->bound_result[i].is_null = &S->out_null[i]; in pdo_mysql_stmt_execute_prepared_libmysql()
251 S->bound_result[i].length = &S->out_length[i]; in pdo_mysql_stmt_execute_prepared_libmysql()
252 S->bound_result[i].buffer_type = MYSQL_TYPE_STRING; in pdo_mysql_stmt_execute_prepared_libmysql()
278 int i; in pdo_mysql_stmt_execute_prepared_mysqlnd() local
295 for (i = 0; i < stmt->column_count; i++) { in pdo_mysql_stmt_execute_prepared_mysqlnd()
296 mysqlnd_stmt_bind_one_result(S->stmt, i); in pdo_mysql_stmt_execute_prepared_mysqlnd()
378 int i; in pdo_mysql_stmt_next_rowset() local
381 for (i = 0; i < stmt->column_count; i++) { in pdo_mysql_stmt_next_rowset()
382 mysqlnd_stmt_bind_one_result(S->stmt, i); in pdo_mysql_stmt_next_rowset()
682 int i; local
701 for (i = 0; i < stmt->column_count; i++) {
704 cols[i].name = strpprintf(0, "%s.%s", S->fields[i].table, S->fields[i].name);
706 cols[i].name = zend_string_init(S->fields[i].name, S->fields[i].name_length, 0);
709 cols[i].precision = S->fields[i].decimals;
710 cols[i].maxlen = S->fields[i].length;
714 cols[i].param_type = PDO_PARAM_ZVAL;
718 cols[i].param_type = PDO_PARAM_STR;