Skip to content

Commit

Permalink
Pass page size to exec_statement function
Browse files Browse the repository at this point in the history
  • Loading branch information
bendailey committed Dec 2, 2015
1 parent 4e96eae commit d6b9e14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 4d_statement.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ static int pdo_4d_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
pdo_4d_stmt *S;
pdo_4d_db_handle *H;
FOURD_LONG8 row_count;
int page_size=999999;
S = (pdo_4d_stmt*)stmt->driver_data;
H = S->H;
if (S->result) {
Expand All @@ -58,7 +59,7 @@ static int pdo_4d_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
}
}
else { /* if statement has prepared */
if ((S->result=fourd_exec_statement(S->state)) ==NULL) {
if ((S->result=fourd_exec_statement(S->state, page_size)) ==NULL) {
pdo_4d_error_stmt(stmt);
return 0;
}
Expand Down Expand Up @@ -400,4 +401,4 @@ struct pdo_stmt_methods fourd_stmt_methods = {
pdo_4d_stmt_col_meta,
NULL,
pdo_4d_stmt_cursor_closer,
};
};

0 comments on commit d6b9e14

Please sign in to comment.