Lines Matching refs:result

51 	if (S->result) {
53 mysql_free_result(S->result);
54 S->result = NULL;
136 /* we either have a query that returned a result set or an error occurred
137 lets see if we have access to a result set */
139 S->result = mysql_use_result(H->server);
141 S->result = mysql_store_result(H->server);
143 if (NULL == S->result) {
148 stmt->row_count = (zend_long) mysql_num_rows(S->result);
149 stmt->column_count = (int) mysql_num_fields(S->result);
150 S->fields = mysql_fetch_fields(S->result);
181 if (!S->result) {
184 /* figure out the result set format, if any */
185 S->result = mysql_stmt_result_metadata(S->stmt);
186 if (S->result) {
188 S->fields = mysql_fetch_fields(S->result);
199 stmt->column_count = (int)mysql_num_fields(S->result);
288 if (S->result) {
290 mysql_free_result(S->result);
291 S->result = NULL;
300 S->result = mysqlnd_stmt_result_metadata(S->stmt);
301 if (S->result) {
302 S->fields = mysql_fetch_fields(S->result);
330 if (S->result) {
331 mysql_free_result(S->result);
332 S->result = NULL;
365 MySQL gives us n + 1 result sets for
366 CALL proc() and n result sets returned by the proc itself.
374 if (S->result) {
375 mysql_free_result(S->result);
376 S->result = NULL;
388 S->result = mysqlnd_stmt_result_metadata(S->stmt);
389 if (S->result) {
390 S->fields = mysql_fetch_fields(S->result);
411 if (S->result) {
412 stmt->column_count = (int)mysql_num_fields(S->result);
417 if (S->result) {
418 mysql_free_result(S->result);
419 S->result = NULL;
660 if (!S->result) {
670 if ((S->current_data = mysql_fetch_row(S->result)) == NULL) {
672 if (S->result->unbuf && !S->result->unbuf->eof_reached && mysql_errno(S->H->server)) {
674 if (!S->result->eof && mysql_errno(S->H->server)) {
681 S->current_lengths = mysql_fetch_lengths(S->result);
694 if (!S->result) {
739 if (!S->result) {
745 if (S->current_data == NULL || !S->result) {
843 if (!S->result) {
910 if (S->result) {
911 mysql_free_result(S->result);
912 S->result = NULL;