Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit34153b2

Browse files
author
Hiroshi Inoue
committed
Preparation for the parameter array handling.
1 parentc0b27c4 commit34153b2

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

‎src/interfaces/odbc/psqlodbc.h

Lines changed: 9 additions & 1 deletion
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/0509:46:17 inoue Exp $
8+
* $Id: psqlodbc.h,v 1.55 2001/11/0510: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+
UInt4paramset_size;
215+
UInt4param_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

Lines changed: 3 additions & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp