diff options
author | Hiroshi Inoue <inoue@tpf.co.jp> | 2001-11-05 10:35:14 +0000 |
---|---|---|
committer | Hiroshi Inoue <inoue@tpf.co.jp> | 2001-11-05 10:35:14 +0000 |
commit | 34153b205265e2e831c1e3ee02be0fc88fa41710 (patch) | |
tree | f1022a4bc6ea7672d92edd232743e5e2780ac5f8 /src/interfaces/odbc/statement.c | |
parent | c0b27c4feb286729613401302e58974f20e05f8f (diff) | |
download | postgresql-34153b205265e2e831c1e3ee02be0fc88fa41710.tar.gz postgresql-34153b205265e2e831c1e3ee02be0fc88fa41710.zip |
Preparation for the parameter array handling.
Diffstat (limited to 'src/interfaces/odbc/statement.c')
-rw-r--r-- | src/interfaces/odbc/statement.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 */ } |