aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/odbc/statement.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2001-01-25 03:28:27 +0000
committerBruce Momjian <bruce@momjian.us>2001-01-25 03:28:27 +0000
commit40203e4f3e65566fc268a26ad9d16f96328490eb (patch)
tree6e8361c6d0378fb9858bf2ea8f14f645a9ddb92b /src/interfaces/odbc/statement.h
parent0e968ee7055d8695a020c63e26581f39ef797246 (diff)
downloadpostgresql-40203e4f3e65566fc268a26ad9d16f96328490eb.tar.gz
postgresql-40203e4f3e65566fc268a26ad9d16f96328490eb.zip
Further to the previous ODBC patches I posted today, I found a couple of
problems with char array sizes having set a couple of constants to 0 for unlimited query length and row length. This additional patch cleans those problems up by defining a new constant (STD_STATEMENT_LEN) to 65536 and using that in place of MAX_STATEMENT_LEN. Another constant (MAX_MESSAGE_LEN) was defined as 2*BLCKSZ, but is now 65536. This is used to define the length of the message buffer in a number of places and as I understand it (probably not that well!) therefore also places a limit on the query length. Fixing this properly is beyond my capabilities but 65536 should hopefully be large enough for most people. Apologies for being over-enthusiastic and posting 3 patches in one day rather than 1 better tested one! Regards, Dave Page
Diffstat (limited to 'src/interfaces/odbc/statement.h')
-rw-r--r--src/interfaces/odbc/statement.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/odbc/statement.h b/src/interfaces/odbc/statement.h
index bd551d3ba79..ae2df856b25 100644
--- a/src/interfaces/odbc/statement.h
+++ b/src/interfaces/odbc/statement.h
@@ -184,7 +184,7 @@ struct StatementClass_ {
char cursor_name[MAX_CURSOR_LEN+1];
- char stmt_with_params[65536 /* MAX_STATEMENT_LEN */]; /* statement after parameter substitution */
+ char stmt_with_params[STD_STATEMENT_LEN]; /* statement after parameter substitution */
};