Skip to content

Commit

Permalink
optimize and fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SunBeau committed Jun 1, 2024
1 parent 01fca68 commit dda555b
Show file tree
Hide file tree
Showing 3 changed files with 226 additions and 201 deletions.
10 changes: 6 additions & 4 deletions include/qlibc/extensions/qdatabase.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,21 @@ struct qdbresult_s {

void (*free) (qdbresult_t *result);

bool fetchtype;
int cursor;
int cols;

#ifdef Q_ENABLE_MYSQL
/* private variables for mysql database - do not access directly */
bool fetchtype;
MYSQL_RES *rs;
MYSQL_FIELD *fields;
MYSQL_ROW row;
int cols;
int cursor;
#endif

#ifdef Q_ENABLE_PGSQL
/* private variables for pgsql database - do not access directly */
void *pgsql;
void *rs;
const void *row;
#endif
};

Expand Down
Loading

0 comments on commit dda555b

Please sign in to comment.