Lines Matching refs:ofs

184 	int				i, ofs;  in mysqli_stmt_bind_param_do_bind()  local
196 ofs = 0; in mysqli_stmt_bind_param_do_bind()
205 switch (types[ofs]) { in mysqli_stmt_bind_param_do_bind()
207 bind[ofs].buffer_type = MYSQL_TYPE_DOUBLE; in mysqli_stmt_bind_param_do_bind()
208 bind[ofs].buffer = &Z_DVAL_P(param); in mysqli_stmt_bind_param_do_bind()
209 bind[ofs].is_null = &stmt->param.is_null[ofs]; in mysqli_stmt_bind_param_do_bind()
214 bind[ofs].buffer_type = MYSQL_TYPE_LONGLONG; in mysqli_stmt_bind_param_do_bind()
216 bind[ofs].buffer_type = MYSQL_TYPE_LONG; in mysqli_stmt_bind_param_do_bind()
218 bind[ofs].buffer = &Z_LVAL_P(param); in mysqli_stmt_bind_param_do_bind()
219 bind[ofs].is_null = &stmt->param.is_null[ofs]; in mysqli_stmt_bind_param_do_bind()
223 bind[ofs].buffer_type = MYSQL_TYPE_LONG_BLOB; in mysqli_stmt_bind_param_do_bind()
228 bind[ofs].buffer_type = MYSQL_TYPE_VAR_STRING; in mysqli_stmt_bind_param_do_bind()
230 bind[ofs].is_null = &stmt->param.is_null[ofs]; in mysqli_stmt_bind_param_do_bind()
238 ofs++; in mysqli_stmt_bind_param_do_bind()
358 int i, ofs; in mysqli_stmt_bind_result_do_bind() local
378 ofs = i; in mysqli_stmt_bind_result_do_bind()
379 col_type = (stmt->stmt->fields) ? stmt->stmt->fields[ofs].type : MYSQL_TYPE_STRING; in mysqli_stmt_bind_result_do_bind()
383 stmt->result.buf[ofs].type = IS_DOUBLE; in mysqli_stmt_bind_result_do_bind()
384 stmt->result.buf[ofs].buflen = sizeof(float); in mysqli_stmt_bind_result_do_bind()
386 stmt->result.buf[ofs].val = (char *)emalloc(sizeof(float)); in mysqli_stmt_bind_result_do_bind()
387 bind[ofs].buffer_type = MYSQL_TYPE_FLOAT; in mysqli_stmt_bind_result_do_bind()
388 bind[ofs].buffer = stmt->result.buf[ofs].val; in mysqli_stmt_bind_result_do_bind()
389 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
393 stmt->result.buf[ofs].type = IS_DOUBLE; in mysqli_stmt_bind_result_do_bind()
394 stmt->result.buf[ofs].buflen = sizeof(double); in mysqli_stmt_bind_result_do_bind()
397 stmt->result.buf[ofs].val = (char *)emalloc(sizeof(double)); in mysqli_stmt_bind_result_do_bind()
398 bind[ofs].buffer_type = MYSQL_TYPE_DOUBLE; in mysqli_stmt_bind_result_do_bind()
399 bind[ofs].buffer = stmt->result.buf[ofs].val; in mysqli_stmt_bind_result_do_bind()
400 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
404 stmt->result.buf[ofs].type = IS_NULL; in mysqli_stmt_bind_result_do_bind()
412 bind[ofs].buffer_type = MYSQL_TYPE_NULL; in mysqli_stmt_bind_result_do_bind()
413 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
421 stmt->result.buf[ofs].type = IS_LONG; in mysqli_stmt_bind_result_do_bind()
423 stmt->result.buf[ofs].val = (char *)emalloc(sizeof(int)); in mysqli_stmt_bind_result_do_bind()
424 bind[ofs].buffer_type = MYSQL_TYPE_LONG; in mysqli_stmt_bind_result_do_bind()
425 bind[ofs].buffer = stmt->result.buf[ofs].val; in mysqli_stmt_bind_result_do_bind()
426 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
427 bind[ofs].is_unsigned = (stmt->stmt->fields[ofs].flags & UNSIGNED_FLAG) ? 1 : 0; in mysqli_stmt_bind_result_do_bind()
432 stmt->result.buf[ofs].type = IS_STRING; in mysqli_stmt_bind_result_do_bind()
433 stmt->result.buf[ofs].buflen = sizeof(my_ulonglong); in mysqli_stmt_bind_result_do_bind()
434 stmt->result.buf[ofs].val = (char *)emalloc(stmt->result.buf[ofs].buflen); in mysqli_stmt_bind_result_do_bind()
435 bind[ofs].buffer_type = col_type; 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()
438 bind[ofs].buffer_length = stmt->result.buf[ofs].buflen; in mysqli_stmt_bind_result_do_bind()
439 bind[ofs].is_unsigned = (stmt->stmt->fields[ofs].flags & UNSIGNED_FLAG) ? 1 : 0; in mysqli_stmt_bind_result_do_bind()
440 bind[ofs].length = &stmt->result.buf[ofs].output_len; in mysqli_stmt_bind_result_do_bind()
461 stmt->result.buf[ofs].type = IS_STRING; in mysqli_stmt_bind_result_do_bind()
467 if (stmt->stmt->fields[ofs].max_length == 0 && in mysqli_stmt_bind_result_do_bind()
476 stmt->result.buf[ofs].buflen = in mysqli_stmt_bind_result_do_bind()
477 …(stmt->stmt->fields) ? (stmt->stmt->fields[ofs].length) ? stmt->stmt->fields[ofs].length + 1: 256:… in mysqli_stmt_bind_result_do_bind()
484 if (!(stmt->result.buf[ofs].buflen = stmt->stmt->fields[ofs].max_length)) in mysqli_stmt_bind_result_do_bind()
485 ++stmt->result.buf[ofs].buflen; in mysqli_stmt_bind_result_do_bind()
487 stmt->result.buf[ofs].val = (char *)emalloc(stmt->result.buf[ofs].buflen); in mysqli_stmt_bind_result_do_bind()
488 bind[ofs].buffer_type = MYSQL_TYPE_STRING; in mysqli_stmt_bind_result_do_bind()
489 bind[ofs].buffer = stmt->result.buf[ofs].val; in mysqli_stmt_bind_result_do_bind()
490 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
491 bind[ofs].buffer_length = stmt->result.buf[ofs].buflen; in mysqli_stmt_bind_result_do_bind()
492 bind[ofs].length = &stmt->result.buf[ofs].output_len; in mysqli_stmt_bind_result_do_bind()