case SQL_MAX_STATEMENT_LEN: /* ODBC 2.0 */
/* maybe this should be 0? */
len = 4;
- value = MAX_QUERY_SIZE;
+ value = MAX_STATEMENT_LEN;
break;
case SQL_MAX_TABLE_NAME_LEN: /* ODBC 1.0 */
HSTMT htbl_stmt;
RETCODE result;
char *tableType;
-char tables_query[MAX_STATEMENT_LEN];
+char tables_query[STD_STATEMENT_LEN];
char table_name[MAX_INFO_STRING], table_owner[MAX_INFO_STRING], relhasrules[MAX_INFO_STRING];
ConnInfo *ci;
char *prefix[32], prefixes[MEDIUM_REGISTRY_LEN];
TupleNode *row;
HSTMT hcol_stmt;
StatementClass *col_stmt;
-char columns_query[MAX_STATEMENT_LEN];
+char columns_query[STD_STATEMENT_LEN];
RETCODE result;
char table_owner[MAX_INFO_STRING], table_name[MAX_INFO_STRING], field_name[MAX_INFO_STRING], field_type_name[MAX_INFO_STRING];
Int2 field_number, result_cols, scale;
ConnInfo *ci;
HSTMT hcol_stmt;
StatementClass *col_stmt;
-char columns_query[MAX_STATEMENT_LEN];
+char columns_query[STD_STATEMENT_LEN];
RETCODE result;
char relhasrules[MAX_INFO_STRING];
{
static char *func="SQLStatistics";
StatementClass *stmt = (StatementClass *) hstmt;
-char index_query[MAX_STATEMENT_LEN];
+char index_query[STD_STATEMENT_LEN];
HSTMT hindx_stmt;
RETCODE result;
char *table_name;
int seq = 0;
HSTMT htbl_stmt;
StatementClass *tbl_stmt;
-char tables_query[MAX_STATEMENT_LEN];
+char tables_query[STD_STATEMENT_LEN];
char attname[MAX_INFO_STRING];
SDWORD attname_len;
char pktab[MAX_TABLE_LEN + 1];
HSTMT htbl_stmt, hpkey_stmt;
StatementClass *tbl_stmt;
RETCODE result, keyresult;
-char tables_query[MAX_STATEMENT_LEN];
+char tables_query[STD_STATEMENT_LEN];
char trig_deferrable[2];
char trig_initdeferred[2];
char trig_args[1024];
#define BLCKSZ 4096
#endif
-#define MAX_ROW_SIZE 0 /* Unlimited rowsize with the Tuple Toaster */
-#define MAX_QUERY_SIZE 0 /* Unlimited query length from v7.0(?) */
-#define MAX_MESSAGE_LEN (2*BLCKSZ)
+#define MAX_MESSAGE_LEN 65536 /* This puts a limit on query size but I don't */
+ /* see an easy way round this - DJP 24-1-2001 */
#define MAX_CONNECT_STRING 4096
#define ERROR_MSG_LENGTH 4096
#define FETCH_MAX 100 /* default number of rows to cache for declare/fetch */
#define MAX_INFO_STRING 128
#define MAX_KEYPARTS 20
#define MAX_KEYLEN 512 /* max key of the form "date+outlet+invoice" */
-#define MAX_STATEMENT_LEN MAX_MESSAGE_LEN
+#define MAX_ROW_SIZE 0 /* Unlimited rowsize with the Tuple Toaster */
+#define MAX_STATEMENT_LEN 0 /* Unlimited statement size with 7.0
+/* Previously, numerous query strings were defined of length MAX_STATEMENT_LEN */
+/* Now that's 0, lets use this instead. DJP 24-1-2001 */
+#define STD_STATEMENT_LEN MAX_MESSAGE_LEN
#define PG62 "6.2" /* "Protocol" key setting to force Postgres 6.2 */
#define PG63 "6.3" /* "Protocol" key setting to force postgres 6.3 */