diff options
author | Hiroshi Inoue <inoue@tpf.co.jp> | 2001-05-25 08:12:32 +0000 |
---|---|---|
committer | Hiroshi Inoue <inoue@tpf.co.jp> | 2001-05-25 08:12:32 +0000 |
commit | e5cff3fe641c35d4a1f73c9c79679799098edb41 (patch) | |
tree | 744ef06f678a6b756618262f60450c50ddc998bc /src/interfaces/odbc/statement.c | |
parent | f3c1ae58f229637f47e44a328544f7578a1f5c21 (diff) |
Get rid of the following size limit.
1) Query size limit(was 65536) for >=7.0 servers.
2) Text size limit(was 8190) for 7.1 servers.
Diffstat (limited to 'src/interfaces/odbc/statement.c')
-rw-r--r-- | src/interfaces/odbc/statement.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/interfaces/odbc/statement.c b/src/interfaces/odbc/statement.c index 5c1ce699aad..83dd58ba8f2 100644 --- a/src/interfaces/odbc/statement.c +++ b/src/interfaces/odbc/statement.c @@ -131,6 +131,7 @@ SQLAllocStmt(HDBC hdbc, /* Copy default statement options based from Connection options */ stmt->options = conn->stmtOptions; + stmt->stmt_size_limit = CC_get_max_query_len(conn); /* Save the handle for later */ stmt->phstmt = phstmt; @@ -249,7 +250,8 @@ SC_Constructor(void) rv->errormsg_created = FALSE; rv->statement = NULL; - rv->stmt_with_params[0] = '\0'; + rv->stmt_with_params = NULL; + rv->stmt_size_limit = -1; rv->statement_type = STMT_TYPE_UNKNOWN; rv->bindings = NULL; @@ -313,6 +315,11 @@ SC_Destructor(StatementClass *self) if (self->statement) free(self->statement); + if (self->stmt_with_params) + { + free(self->stmt_with_params); + self->stmt_with_params = NULL; + } SC_free_params(self, STMT_FREE_PARAMS_ALL); |