Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 34153b2

Browse files
author
Hiroshi Inoue
committed
Preparation for the parameter array handling.
1 parent c0b27c4 commit 34153b2

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/interfaces/odbc/psqlodbc.h

+9-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Comments: See "notice.txt" for copyright and license information.
77
*
8-
* $Id: psqlodbc.h,v 1.54 2001/11/05 09:46:17 inoue Exp $
8+
* $Id: psqlodbc.h,v 1.55 2001/11/05 10:35:14 inoue Exp $
99
*
1010
*/
1111

@@ -209,6 +209,14 @@ typedef struct StatementOptions_
209209
UInt4 *rowsFetched;
210210
UInt2 *rowStatusArray;
211211
void *bookmark_ptr;
212+
UInt2 *row_operation_ptr;
213+
UInt4 *row_offset_ptr;
214+
UInt4 paramset_size;
215+
UInt4 param_bind_type;
216+
UInt4 *param_processed_ptr;
217+
UInt2 *param_status_ptr;
218+
UInt2 *param_operation_ptr;
219+
UInt4 *param_offset_ptr;
212220
} StatementOptions;
213221

214222
/* Used to pass extra query info to send_query */

src/interfaces/odbc/statement.c

+3
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ PGAPI_FreeStmt(HSTMT hstmt,
204204
void
205205
InitializeStatementOptions(StatementOptions *opt)
206206
{
207+
memset(opt, 0, sizeof(StatementOptions));
207208
opt->maxRows = 0; /* driver returns all rows */
208209
opt->maxLength = 0; /* driver returns all data for char/binary */
209210
opt->rowset_size = 1;
@@ -213,6 +214,8 @@ InitializeStatementOptions(StatementOptions *opt)
213214
opt->bind_size = 0; /* default is to bind by column */
214215
opt->retrieve_data = SQL_RD_ON;
215216
opt->use_bookmarks = SQL_UB_OFF;
217+
opt->paramset_size = 1;
218+
opt->param_bind_type = 0; /*default is column-wise binding */
216219
}
217220

218221

0 commit comments

Comments
 (0)