Lines Matching refs:bound_result
83 if (S->bound_result) in pdo_mysql_stmt_dtor()
87 pdo_free_bound_result(S->bound_result[i]); in pdo_mysql_stmt_dtor()
90 efree(S->bound_result); in pdo_mysql_stmt_dtor()
196 if (S->bound_result) { in pdo_mysql_stmt_execute_prepared_libmysql()
199 efree(S->bound_result[i].buffer); in pdo_mysql_stmt_execute_prepared_libmysql()
201 efree(S->bound_result); in pdo_mysql_stmt_execute_prepared_libmysql()
207 S->bound_result = ecalloc(stmt->column_count, sizeof(MYSQL_BIND)); in pdo_mysql_stmt_execute_prepared_libmysql()
220 S->bound_result[i].buffer_length = MAX_MEDIUMINT_WIDTH + 1; in pdo_mysql_stmt_execute_prepared_libmysql()
223 S->bound_result[i].buffer_length = MAX_INT_WIDTH + 1; in pdo_mysql_stmt_execute_prepared_libmysql()
226 S->bound_result[i].buffer_length = MAX_BIGINT_WIDTH + 1; in pdo_mysql_stmt_execute_prepared_libmysql()
229 S->bound_result[i].buffer_length = MAX_TINYINT_WIDTH + 1; in pdo_mysql_stmt_execute_prepared_libmysql()
232 S->bound_result[i].buffer_length = MAX_SMALLINT_WIDTH + 1; in pdo_mysql_stmt_execute_prepared_libmysql()
235 S->bound_result[i].buffer_length = in pdo_mysql_stmt_execute_prepared_libmysql()
239 if (S->bound_result[i].buffer_length > H->max_buffer_size) { in pdo_mysql_stmt_execute_prepared_libmysql()
240 S->bound_result[i].buffer_length = H->max_buffer_size; in pdo_mysql_stmt_execute_prepared_libmysql()
248 …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()
249 S->bound_result[i].buffer_length = 128; in pdo_mysql_stmt_execute_prepared_libmysql()
254 S->bound_result[i].buffer = emalloc(S->bound_result[i].buffer_length); in pdo_mysql_stmt_execute_prepared_libmysql()
255 S->bound_result[i].is_null = &S->out_null[i]; in pdo_mysql_stmt_execute_prepared_libmysql()
256 S->bound_result[i].length = &S->out_length[i]; in pdo_mysql_stmt_execute_prepared_libmysql()
257 S->bound_result[i].buffer_type = MYSQL_TYPE_STRING; in pdo_mysql_stmt_execute_prepared_libmysql()
260 if (mysql_stmt_bind_result(S->stmt, S->bound_result)) { in pdo_mysql_stmt_execute_prepared_libmysql()
766 *ptr = S->bound_result[colno].buffer;
767 if (S->out_length[colno] > S->bound_result[colno].buffer_length) {
770 S->out_length[colno] = S->bound_result[colno].buffer_length;