@@ -984,7 +984,6 @@ RETCODE result;
984
984
char * tableType ;
985
985
char tables_query [MAX_STATEMENT_LEN ];
986
986
char table_name [MAX_INFO_STRING ], table_owner [MAX_INFO_STRING ], relhasrules [MAX_INFO_STRING ];
987
- // SDWORD table_name_len, table_owner_len, relhasrules_len;
988
987
ConnInfo * ci ;
989
988
char * prefix [32 ], prefixes [MEDIUM_REGISTRY_LEN ];
990
989
char * table_type [32 ], table_types [MAX_INFO_STRING ];
@@ -1092,7 +1091,7 @@ mylog("**** SQLTables(): ENTER, stmt=%u\n", stmt);
1092
1091
}
1093
1092
1094
1093
result = SQLBindCol (htbl_stmt , 1 , SQL_C_CHAR ,
1095
- table_name , MAX_INFO_STRING , NULL /* &table_name_len */ );
1094
+ table_name , MAX_INFO_STRING , NULL );
1096
1095
if ((result != SQL_SUCCESS ) && (result != SQL_SUCCESS_WITH_INFO )) {
1097
1096
stmt -> errormsg = tbl_stmt -> errormsg ;
1098
1097
stmt -> errornumber = tbl_stmt -> errornumber ;
@@ -1101,15 +1100,15 @@ mylog("**** SQLTables(): ENTER, stmt=%u\n", stmt);
1101
1100
}
1102
1101
1103
1102
result = SQLBindCol (htbl_stmt , 2 , SQL_C_CHAR ,
1104
- table_owner , MAX_INFO_STRING , NULL /* &table_owner_len */ );
1103
+ table_owner , MAX_INFO_STRING , NULL );
1105
1104
if ((result != SQL_SUCCESS ) && (result != SQL_SUCCESS_WITH_INFO )) {
1106
1105
stmt -> errormsg = tbl_stmt -> errormsg ;
1107
1106
stmt -> errornumber = tbl_stmt -> errornumber ;
1108
1107
SQLFreeStmt (htbl_stmt , SQL_DROP );
1109
1108
return SQL_ERROR ;
1110
1109
}
1111
1110
result = SQLBindCol (htbl_stmt , 3 , SQL_C_CHAR ,
1112
- relhasrules , MAX_INFO_STRING , NULL /* &relhasrules_len */ );
1111
+ relhasrules , MAX_INFO_STRING , NULL );
1113
1112
if ((result != SQL_SUCCESS ) && (result != SQL_SUCCESS_WITH_INFO )) {
1114
1113
stmt -> errormsg = tbl_stmt -> errormsg ;
1115
1114
stmt -> errornumber = tbl_stmt -> errornumber ;
@@ -1239,11 +1238,7 @@ RETCODE result;
1239
1238
char table_owner [MAX_INFO_STRING ], table_name [MAX_INFO_STRING ], field_name [MAX_INFO_STRING ], field_type_name [MAX_INFO_STRING ];
1240
1239
Int2 field_number , field_length , mod_length ;
1241
1240
Int4 field_type ;
1242
- char not_null [2 ];
1243
- /* SDWORD table_owner_len, table_name_len, field_name_len,
1244
- field_type_len, field_type_name_len, field_number_len,
1245
- field_length_len, mod_length_len, not_null_len;
1246
- */
1241
+ char not_null [MAX_INFO_STRING ];
1247
1242
ConnInfo * ci ;
1248
1243
1249
1244
@@ -1292,7 +1287,7 @@ mylog("**** SQLColumns(): ENTER, stmt=%u\n", stmt);
1292
1287
}
1293
1288
1294
1289
result = SQLBindCol (hcol_stmt , 1 , SQL_C_CHAR ,
1295
- table_owner , MAX_INFO_STRING , NULL /* &table_owner_len */ );
1290
+ table_owner , MAX_INFO_STRING , NULL );
1296
1291
if ((result != SQL_SUCCESS ) && (result != SQL_SUCCESS_WITH_INFO )) {
1297
1292
stmt -> errormsg = col_stmt -> errormsg ;
1298
1293
stmt -> errornumber = col_stmt -> errornumber ;
@@ -1301,7 +1296,7 @@ mylog("**** SQLColumns(): ENTER, stmt=%u\n", stmt);
1301
1296
}
1302
1297
1303
1298
result = SQLBindCol (hcol_stmt , 2 , SQL_C_CHAR ,
1304
- table_name , MAX_INFO_STRING , NULL /* &table_name_len */ );
1299
+ table_name , MAX_INFO_STRING , NULL );
1305
1300
if ((result != SQL_SUCCESS ) && (result != SQL_SUCCESS_WITH_INFO )) {
1306
1301
stmt -> errormsg = col_stmt -> errormsg ;
1307
1302
stmt -> errornumber = col_stmt -> errornumber ;
@@ -1310,7 +1305,7 @@ mylog("**** SQLColumns(): ENTER, stmt=%u\n", stmt);
1310
1305
}
1311
1306
1312
1307
result = SQLBindCol (hcol_stmt , 3 , SQL_C_CHAR ,
1313
- field_name , MAX_INFO_STRING , NULL /* &field_name_len */ );
1308
+ field_name , MAX_INFO_STRING , NULL );
1314
1309
if ((result != SQL_SUCCESS ) && (result != SQL_SUCCESS_WITH_INFO )) {
1315
1310
stmt -> errormsg = col_stmt -> errormsg ;
1316
1311
stmt -> errornumber = col_stmt -> errornumber ;
@@ -1319,7 +1314,7 @@ mylog("**** SQLColumns(): ENTER, stmt=%u\n", stmt);
1319
1314
}
1320
1315
1321
1316
result = SQLBindCol (hcol_stmt , 4 , SQL_C_DEFAULT ,
1322
- & field_type , 4 , NULL /* &field_type_len */ );
1317
+ & field_type , 4 , NULL );
1323
1318
if ((result != SQL_SUCCESS ) && (result != SQL_SUCCESS_WITH_INFO )) {
1324
1319
stmt -> errormsg = col_stmt -> errormsg ;
1325
1320
stmt -> errornumber = col_stmt -> errornumber ;
@@ -1328,7 +1323,7 @@ mylog("**** SQLColumns(): ENTER, stmt=%u\n", stmt);
1328
1323
}
1329
1324
1330
1325
result = SQLBindCol (hcol_stmt , 5 , SQL_C_CHAR ,
1331
- field_type_name , MAX_INFO_STRING , NULL /* &field_type_name_len */ );
1326
+ field_type_name , MAX_INFO_STRING , NULL );
1332
1327
if ((result != SQL_SUCCESS ) && (result != SQL_SUCCESS_WITH_INFO )) {
1333
1328
stmt -> errormsg = col_stmt -> errormsg ;
1334
1329
stmt -> errornumber = col_stmt -> errornumber ;
@@ -1337,7 +1332,7 @@ mylog("**** SQLColumns(): ENTER, stmt=%u\n", stmt);
1337
1332
}
1338
1333
1339
1334
result = SQLBindCol (hcol_stmt , 6 , SQL_C_DEFAULT ,
1340
- & field_number , MAX_INFO_STRING , NULL /* &field_number_len */ );
1335
+ & field_number , MAX_INFO_STRING , NULL );
1341
1336
if ((result != SQL_SUCCESS ) && (result != SQL_SUCCESS_WITH_INFO )) {
1342
1337
stmt -> errormsg = col_stmt -> errormsg ;
1343
1338
stmt -> errornumber = col_stmt -> errornumber ;
@@ -1346,7 +1341,7 @@ mylog("**** SQLColumns(): ENTER, stmt=%u\n", stmt);
1346
1341
}
1347
1342
1348
1343
result = SQLBindCol (hcol_stmt , 7 , SQL_C_DEFAULT ,
1349
- & field_length , MAX_INFO_STRING , NULL /* &field_length_len */ );
1344
+ & field_length , MAX_INFO_STRING , NULL );
1350
1345
if ((result != SQL_SUCCESS ) && (result != SQL_SUCCESS_WITH_INFO )) {
1351
1346
stmt -> errormsg = col_stmt -> errormsg ;
1352
1347
stmt -> errornumber = col_stmt -> errornumber ;
@@ -1355,7 +1350,7 @@ mylog("**** SQLColumns(): ENTER, stmt=%u\n", stmt);
1355
1350
}
1356
1351
1357
1352
result = SQLBindCol (hcol_stmt , 8 , SQL_C_DEFAULT ,
1358
- & mod_length , MAX_INFO_STRING , NULL /* &mod_length_len */ );
1353
+ & mod_length , MAX_INFO_STRING , NULL );
1359
1354
if ((result != SQL_SUCCESS ) && (result != SQL_SUCCESS_WITH_INFO )) {
1360
1355
stmt -> errormsg = col_stmt -> errormsg ;
1361
1356
stmt -> errornumber = col_stmt -> errornumber ;
@@ -1364,7 +1359,7 @@ mylog("**** SQLColumns(): ENTER, stmt=%u\n", stmt);
1364
1359
}
1365
1360
1366
1361
result = SQLBindCol (hcol_stmt , 9 , SQL_C_CHAR ,
1367
- & not_null , MAX_INFO_STRING , NULL /* ¬_null_len */ );
1362
+ not_null , MAX_INFO_STRING , NULL );
1368
1363
if ((result != SQL_SUCCESS ) && (result != SQL_SUCCESS_WITH_INFO )) {
1369
1364
stmt -> errormsg = col_stmt -> errormsg ;
1370
1365
stmt -> errornumber = col_stmt -> errornumber ;
0 commit comments