Skip to content

Commit

Permalink
mx_mysql: export mx_mysql_statement_num_rows()
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed May 20, 2015
1 parent e8da4d7 commit 29a6c83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mx_mysql.c
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,10 @@ int mx_mysql_statement_execute(struct mx_mysql_stmt *stmt, unsigned long long *c
return 0;
}

int mx_mysql_statement_num_rows(struct mx_mysql_stmt *stmt, unsigned long long int *count) {
return mx__mysql_stmt_num_rows(stmt, count);
}

int mx_mysql_statement_fetch(struct mx_mysql_stmt *stmt)
{
struct mx_mysql_stmt *s;
Expand Down
3 changes: 3 additions & 0 deletions mx_mysql.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ int mx_mysql_finish(struct mx_mysql **mysql);
int mx_mysql_statement_init(struct mx_mysql *mysql, struct mx_mysql_stmt **stmt);
int mx_mysql_statement_prepare(struct mx_mysql_stmt *stmt, char *statement);
int mx_mysql_statement_execute(struct mx_mysql_stmt *stmt, unsigned long long *count);

int mx_mysql_statement_num_rows(struct mx_mysql_stmt *stmt, unsigned long long int *count);

int mx_mysql_statement_fetch(struct mx_mysql_stmt *stmt);

int mx_mysql_statement_field_count(struct mx_mysql_stmt *stmt);
Expand Down

0 comments on commit 29a6c83

Please sign in to comment.