Lines Matching refs:bind

193 	MYSQL_BIND		*bind;  in mysqli_stmt_bind_param_do_bind()  local
202 bind = (MYSQL_BIND *) ecalloc(num_vars, sizeof(MYSQL_BIND)); in mysqli_stmt_bind_param_do_bind()
210 bind[ofs].buffer_type = MYSQL_TYPE_DOUBLE; in mysqli_stmt_bind_param_do_bind()
211 bind[ofs].buffer = &Z_DVAL_PP(args[i]); in mysqli_stmt_bind_param_do_bind()
212 bind[ofs].is_null = &stmt->param.is_null[ofs]; in mysqli_stmt_bind_param_do_bind()
217 bind[ofs].buffer_type = MYSQL_TYPE_LONGLONG; in mysqli_stmt_bind_param_do_bind()
219 bind[ofs].buffer_type = MYSQL_TYPE_LONG; in mysqli_stmt_bind_param_do_bind()
221 bind[ofs].buffer = &Z_LVAL_PP(args[i]); in mysqli_stmt_bind_param_do_bind()
222 bind[ofs].is_null = &stmt->param.is_null[ofs]; in mysqli_stmt_bind_param_do_bind()
226 bind[ofs].buffer_type = MYSQL_TYPE_LONG_BLOB; in mysqli_stmt_bind_param_do_bind()
231 bind[ofs].buffer_type = MYSQL_TYPE_VAR_STRING; in mysqli_stmt_bind_param_do_bind()
233 bind[ofs].is_null = &stmt->param.is_null[ofs]; in mysqli_stmt_bind_param_do_bind()
243 rc = mysql_stmt_bind_param(stmt->stmt, bind); in mysqli_stmt_bind_param_do_bind()
252 if (bind[i].buffer_type != MYSQL_TYPE_LONG_BLOB) { in mysqli_stmt_bind_param_do_bind()
260 efree(bind); in mysqli_stmt_bind_param_do_bind()
392 MYSQL_BIND *bind; in mysqli_stmt_bind_result_do_bind() local
403 bind = (MYSQL_BIND *)ecalloc(var_cnt, sizeof(MYSQL_BIND)); in mysqli_stmt_bind_result_do_bind()
423 bind[ofs].buffer_type = MYSQL_TYPE_FLOAT; in mysqli_stmt_bind_result_do_bind()
424 bind[ofs].buffer = stmt->result.buf[ofs].val; in mysqli_stmt_bind_result_do_bind()
425 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
435 bind[ofs].buffer_type = MYSQL_TYPE_DOUBLE; in mysqli_stmt_bind_result_do_bind()
436 bind[ofs].buffer = stmt->result.buf[ofs].val; in mysqli_stmt_bind_result_do_bind()
437 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
449 bind[ofs].buffer_type = MYSQL_TYPE_NULL; in mysqli_stmt_bind_result_do_bind()
450 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
462 bind[ofs].buffer_type = MYSQL_TYPE_LONG; in mysqli_stmt_bind_result_do_bind()
463 bind[ofs].buffer = stmt->result.buf[ofs].val; in mysqli_stmt_bind_result_do_bind()
464 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
465 bind[ofs].is_unsigned = (stmt->stmt->fields[ofs].flags & UNSIGNED_FLAG) ? 1 : 0; in mysqli_stmt_bind_result_do_bind()
475 bind[ofs].buffer_type = col_type; in mysqli_stmt_bind_result_do_bind()
476 bind[ofs].buffer = stmt->result.buf[ofs].val; in mysqli_stmt_bind_result_do_bind()
477 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
478 bind[ofs].buffer_length = stmt->result.buf[ofs].buflen; in mysqli_stmt_bind_result_do_bind()
479 bind[ofs].is_unsigned = (stmt->stmt->fields[ofs].flags & UNSIGNED_FLAG) ? 1 : 0; in mysqli_stmt_bind_result_do_bind()
480 bind[ofs].length = &stmt->result.buf[ofs].output_len; in mysqli_stmt_bind_result_do_bind()
533 bind[ofs].buffer_type = MYSQL_TYPE_STRING; in mysqli_stmt_bind_result_do_bind()
534 bind[ofs].buffer = stmt->result.buf[ofs].val; in mysqli_stmt_bind_result_do_bind()
535 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
536 bind[ofs].buffer_length = stmt->result.buf[ofs].buflen; in mysqli_stmt_bind_result_do_bind()
537 bind[ofs].length = &stmt->result.buf[ofs].output_len; in mysqli_stmt_bind_result_do_bind()
546 rc = mysql_stmt_bind_result(stmt->stmt, bind); in mysqli_stmt_bind_result_do_bind()
567 efree(bind); in mysqli_stmt_bind_result_do_bind()
1061 if (stmt->stmt->bind[i].buffer_type == MYSQL_TYPE_FLOAT) {
1076 if (stmt->stmt->bind[i].buffer_type == MYSQL_TYPE_LONGLONG
1078 || stmt->stmt->bind[i].buffer_type == MYSQL_TYPE_BIT
1083 if (stmt->stmt->bind[i].buffer_type == MYSQL_TYPE_BIT) {
1119 if (ret == MYSQL_DATA_TRUNCATED && *(stmt->stmt->bind[i].error) != 0) {
1122 stmt->stmt->bind[i].buffer_length, 1);