diff options
| author | Heikki Linnakangas | 2015-01-22 17:44:59 +0000 |
|---|---|---|
| committer | Heikki Linnakangas | 2015-01-22 19:42:01 +0000 |
| commit | 0f320ec3a005f5eef04ba2a977f87196c83ad875 (patch) | |
| tree | 12234a30c4817391509dfe39f5d43cc8a7ced74f /statement.h | |
| parent | 6089e08bd036906ba114f86db672a779cf404ebb (diff) | |
Miscellaneous cleanup.
* Mark functions used only in same file as static.
* Remove unused 'encoding' argument from msgtowstr and wstrtoms (all
callers passed NULL).
* Silence remaining compiler warnings on 64-bit Windows about assigning
size_t to int without cast.
* Remove superfluous FORMAT_INT4/FORMAT_UINT4 defines.
* Remove useless dollar_quote argument from findTag (it was always '$'), and
add comment.
* Turn OID_NAME into a #define, to avoid a useless sprintf.
* Turn the mapFuncs array into structs, for clarity, and add comment.
Diffstat (limited to 'statement.h')
| -rw-r--r-- | statement.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/statement.h b/statement.h index aeb7839..84a1114 100644 --- a/statement.h +++ b/statement.h @@ -286,8 +286,8 @@ struct StatementClass_ po_ind_t updatable; SQLLEN diag_row_count; char *load_statement; /* to (re)load updatable individual rows */ - Int4 from_pos; - Int4 where_pos; + ssize_t from_pos; + ssize_t where_pos; SQLLEN last_fetch_count_include_ommitted; time_t stmt_time; /* SQL_NEED_DATA Callback list */ @@ -513,7 +513,7 @@ RETCODE SC_pos_add(StatementClass *self, SQLSETPOSIROW irow); int SC_set_current_col(StatementClass *self, int col); void SC_setInsertedTable(StatementClass *, RETCODE); void SC_scanQueryAndCountParams(const char *, const ConnectionClass *, - Int4 *next_cmd, SQLSMALLINT *num_params, + ssize_t *next_cmd, SQLSMALLINT *num_params, po_ind_t *multi, po_ind_t *proc_return); BOOL SC_IsExecuting(const StatementClass *self); |
