File tree 1 file changed +1
-17
lines changed
1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -363,9 +363,6 @@ static int pdo_mysql_stmt_next_rowset(pdo_stmt_t *stmt) /* {{{ */
363
363
364
364
#ifdef PDO_USE_MYSQLND
365
365
if (!H -> emulate_prepare ) {
366
- if (!mysqlnd_stmt_more_results (S -> stmt )) {
367
- PDO_DBG_RETURN (0 );
368
- }
369
366
if (mysqlnd_stmt_next_result (S -> stmt )) {
370
367
pdo_mysql_error_stmt (stmt );
371
368
PDO_DBG_RETURN (0 );
@@ -375,25 +372,12 @@ static int pdo_mysql_stmt_next_rowset(pdo_stmt_t *stmt) /* {{{ */
375
372
}
376
373
#endif
377
374
378
- if (!mysql_more_results (H -> server )) {
379
- /* No more results */
380
- PDO_DBG_RETURN (0 );
381
- }
382
- #ifdef PDO_USE_MYSQLND
383
- if (mysql_next_result (H -> server ) == FAIL ) {
384
- pdo_mysql_error_stmt (stmt );
385
- PDO_DBG_RETURN (0 );
386
- } else {
387
- PDO_DBG_RETURN (pdo_mysql_fill_stmt_from_result (stmt ));
388
- }
389
- #else
390
- if (mysql_next_result (H -> server ) > 0 ) {
375
+ if (mysql_next_result (H -> server )) {
391
376
pdo_mysql_error_stmt (stmt );
392
377
PDO_DBG_RETURN (0 );
393
378
} else {
394
379
PDO_DBG_RETURN (pdo_mysql_fill_stmt_from_result (stmt ));
395
380
}
396
- #endif
397
381
}
398
382
/* }}} */
399
383
You can’t perform that action at this time.
0 commit comments