Lines Matching refs:bind

189 	MYSQL_BIND		*bind;  in mysqli_stmt_bind_param_do_bind()  local
198 bind = (MYSQL_BIND *) ecalloc(num_vars, sizeof(MYSQL_BIND)); in mysqli_stmt_bind_param_do_bind()
211 bind[ofs].buffer_type = MYSQL_TYPE_DOUBLE; in mysqli_stmt_bind_param_do_bind()
212 bind[ofs].buffer = &Z_DVAL_P(param); in mysqli_stmt_bind_param_do_bind()
213 bind[ofs].is_null = &stmt->param.is_null[ofs]; in mysqli_stmt_bind_param_do_bind()
218 bind[ofs].buffer_type = MYSQL_TYPE_LONGLONG; in mysqli_stmt_bind_param_do_bind()
220 bind[ofs].buffer_type = MYSQL_TYPE_LONG; in mysqli_stmt_bind_param_do_bind()
222 bind[ofs].buffer = &Z_LVAL_P(param); in mysqli_stmt_bind_param_do_bind()
223 bind[ofs].is_null = &stmt->param.is_null[ofs]; in mysqli_stmt_bind_param_do_bind()
227 bind[ofs].buffer_type = MYSQL_TYPE_LONG_BLOB; in mysqli_stmt_bind_param_do_bind()
232 bind[ofs].buffer_type = MYSQL_TYPE_VAR_STRING; in mysqli_stmt_bind_param_do_bind()
234 bind[ofs].is_null = &stmt->param.is_null[ofs]; in mysqli_stmt_bind_param_do_bind()
244 rc = mysql_stmt_bind_param(stmt->stmt, bind); in mysqli_stmt_bind_param_do_bind()
253 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()
422 bind[ofs].buffer_type = MYSQL_TYPE_FLOAT; in mysqli_stmt_bind_result_do_bind()
423 bind[ofs].buffer = stmt->result.buf[ofs].val; in mysqli_stmt_bind_result_do_bind()
424 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
433 bind[ofs].buffer_type = MYSQL_TYPE_DOUBLE; in mysqli_stmt_bind_result_do_bind()
434 bind[ofs].buffer = stmt->result.buf[ofs].val; in mysqli_stmt_bind_result_do_bind()
435 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
447 bind[ofs].buffer_type = MYSQL_TYPE_NULL; in mysqli_stmt_bind_result_do_bind()
448 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
459 bind[ofs].buffer_type = MYSQL_TYPE_LONG; in mysqli_stmt_bind_result_do_bind()
460 bind[ofs].buffer = stmt->result.buf[ofs].val; in mysqli_stmt_bind_result_do_bind()
461 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
462 bind[ofs].is_unsigned = (stmt->stmt->fields[ofs].flags & UNSIGNED_FLAG) ? 1 : 0; in mysqli_stmt_bind_result_do_bind()
472 bind[ofs].buffer_type = col_type; in mysqli_stmt_bind_result_do_bind()
473 bind[ofs].buffer = stmt->result.buf[ofs].val; in mysqli_stmt_bind_result_do_bind()
474 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
475 bind[ofs].buffer_length = stmt->result.buf[ofs].buflen; in mysqli_stmt_bind_result_do_bind()
476 bind[ofs].is_unsigned = (stmt->stmt->fields[ofs].flags & UNSIGNED_FLAG) ? 1 : 0; in mysqli_stmt_bind_result_do_bind()
477 bind[ofs].length = &stmt->result.buf[ofs].output_len; in mysqli_stmt_bind_result_do_bind()
530 bind[ofs].buffer_type = MYSQL_TYPE_STRING; in mysqli_stmt_bind_result_do_bind()
531 bind[ofs].buffer = stmt->result.buf[ofs].val; in mysqli_stmt_bind_result_do_bind()
532 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
533 bind[ofs].buffer_length = stmt->result.buf[ofs].buflen; in mysqli_stmt_bind_result_do_bind()
534 bind[ofs].length = &stmt->result.buf[ofs].output_len; in mysqli_stmt_bind_result_do_bind()
543 rc = mysql_stmt_bind_result(stmt->stmt, bind); in mysqli_stmt_bind_result_do_bind()
562 efree(bind); in mysqli_stmt_bind_result_do_bind()
1016 if (stmt->stmt->bind[i].buffer_type == MYSQL_TYPE_FLOAT) {
1031 if (stmt->stmt->bind[i].buffer_type == MYSQL_TYPE_LONGLONG
1033 || stmt->stmt->bind[i].buffer_type == MYSQL_TYPE_BIT
1038 if (stmt->stmt->bind[i].buffer_type == MYSQL_TYPE_BIT) {
1074 if (ret == MYSQL_DATA_TRUNCATED && *(stmt->stmt->bind[i].error) != 0) {
1076 ZVAL_STRINGL(result, stmt->result.buf[i].val, stmt->stmt->bind[i].buffer_length);