@@ -1104,7 +1104,7 @@ SQLTables(
11041104HSTMT htbl_stmt ;
11051105RETCODE result ;
11061106char * tableType ;
1107- char tables_query [STD_STATEMENT_LEN ];
1107+ char tables_query [INFO_INQUIRY_LEN ];
11081108char table_name [MAX_INFO_STRING ],
11091109table_owner [MAX_INFO_STRING ],
11101110relkind_or_hasrules [MAX_INFO_STRING ];
@@ -1422,7 +1422,7 @@ SQLColumns(
14221422TupleNode * row ;
14231423HSTMT hcol_stmt ;
14241424StatementClass * col_stmt ;
1425- char columns_query [STD_STATEMENT_LEN ];
1425+ char columns_query [INFO_INQUIRY_LEN ];
14261426RETCODE result ;
14271427char table_owner [MAX_INFO_STRING ],
14281428table_name [MAX_INFO_STRING ],
@@ -1862,7 +1862,7 @@ SQLSpecialColumns(
18621862ConnInfo * ci ;
18631863HSTMT hcol_stmt ;
18641864StatementClass * col_stmt ;
1865- char columns_query [STD_STATEMENT_LEN ];
1865+ char columns_query [INFO_INQUIRY_LEN ];
18661866RETCODE result ;
18671867char relhasrules [MAX_INFO_STRING ];
18681868
@@ -2003,7 +2003,7 @@ SQLStatistics(
20032003{
20042004static char * func = "SQLStatistics" ;
20052005StatementClass * stmt = (StatementClass * )hstmt ;
2006- char index_query [STD_STATEMENT_LEN ];
2006+ char index_query [INFO_INQUIRY_LEN ];
20072007HSTMT hindx_stmt ;
20082008RETCODE result ;
20092009char * table_name ;
@@ -2171,12 +2171,12 @@ SQLStatistics(
21712171indx_stmt = (StatementClass * )hindx_stmt ;
21722172
21732173sprintf (index_query ,"select c.relname, i.indkey, i.indisunique"
2174- ",x .indisclustered, a.amname,i .relhasrules"
2175- " from pg_indexx , pg_classi , pg_classc , pg_am a"
2176- " wherec .relname = '%s'"
2177- " andc .oid =x .indrelid"
2178- " andx .indexrelid =i .oid"
2179- " andi .relam = a.oid"
2174+ ",i .indisclustered, a.amname,c .relhasrules"
2175+ " from pg_indexi , pg_classc , pg_classd , pg_am a"
2176+ " whered .relname = '%s'"
2177+ " andd .oid =i .indrelid"
2178+ " andi .indexrelid =c .oid"
2179+ " andc .relam = a.oid"
21802180,table_name );
21812181
21822182result = SQLExecDirect (hindx_stmt ,index_query ,strlen (index_query ));
@@ -2455,7 +2455,7 @@ SQLPrimaryKeys(
24552455int seq = 0 ;
24562456HSTMT htbl_stmt ;
24572457StatementClass * tbl_stmt ;
2458- char tables_query [STD_STATEMENT_LEN ];
2458+ char tables_query [INFO_INQUIRY_LEN ];
24592459char attname [MAX_INFO_STRING ];
24602460SDWORD attname_len ;
24612461char pktab [MAX_TABLE_LEN + 1 ];
@@ -2641,7 +2641,7 @@ SQLForeignKeys(
26412641StatementClass * tbl_stmt ;
26422642RETCODE result ,
26432643keyresult ;
2644- char tables_query [STD_STATEMENT_LEN ];
2644+ char tables_query [INFO_INQUIRY_LEN ];
26452645char trig_deferrable [2 ];
26462646char trig_initdeferred [2 ];
26472647char trig_args [1024 ];