aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi Inoue <inoue@tpf.co.jp>2001-11-05 10:35:14 +0000
committerHiroshi Inoue <inoue@tpf.co.jp>2001-11-05 10:35:14 +0000
commit34153b205265e2e831c1e3ee02be0fc88fa41710 (patch)
treef1022a4bc6ea7672d92edd232743e5e2780ac5f8
parentc0b27c4feb286729613401302e58974f20e05f8f (diff)
downloadpostgresql-34153b205265e2e831c1e3ee02be0fc88fa41710.tar.gz
postgresql-34153b205265e2e831c1e3ee02be0fc88fa41710.zip
Preparation for the parameter array handling.
-rw-r--r--src/interfaces/odbc/psqlodbc.h10
-rw-r--r--src/interfaces/odbc/statement.c3
2 files changed, 12 insertions, 1 deletions
diff --git a/src/interfaces/odbc/psqlodbc.h b/src/interfaces/odbc/psqlodbc.h
index 62e6b9b23a2..34972f21cb3 100644
--- a/src/interfaces/odbc/psqlodbc.h
+++ b/src/interfaces/odbc/psqlodbc.h
@@ -5,7 +5,7 @@
*
* Comments: See "notice.txt" for copyright and license information.
*
- * $Id: psqlodbc.h,v 1.54 2001/11/05 09:46:17 inoue Exp $
+ * $Id: psqlodbc.h,v 1.55 2001/11/05 10:35:14 inoue Exp $
*
*/
@@ -209,6 +209,14 @@ typedef struct StatementOptions_
UInt4 *rowsFetched;
UInt2 *rowStatusArray;
void *bookmark_ptr;
+ UInt2 *row_operation_ptr;
+ UInt4 *row_offset_ptr;
+ UInt4 paramset_size;
+ UInt4 param_bind_type;
+ UInt4 *param_processed_ptr;
+ UInt2 *param_status_ptr;
+ UInt2 *param_operation_ptr;
+ UInt4 *param_offset_ptr;
} StatementOptions;
/* Used to pass extra query info to send_query */
diff --git a/src/interfaces/odbc/statement.c b/src/interfaces/odbc/statement.c
index b2798506785..0e816514a8f 100644
--- a/src/interfaces/odbc/statement.c
+++ b/src/interfaces/odbc/statement.c
@@ -204,6 +204,7 @@ PGAPI_FreeStmt(HSTMT hstmt,
void
InitializeStatementOptions(StatementOptions *opt)
{
+ memset(opt, 0, sizeof(StatementOptions));
opt->maxRows = 0; /* driver returns all rows */
opt->maxLength = 0; /* driver returns all data for char/binary */
opt->rowset_size = 1;
@@ -213,6 +214,8 @@ InitializeStatementOptions(StatementOptions *opt)
opt->bind_size = 0; /* default is to bind by column */
opt->retrieve_data = SQL_RD_ON;
opt->use_bookmarks = SQL_UB_OFF;
+ opt->paramset_size = 1;
+ opt->param_bind_type = 0; /*default is column-wise binding */
}