*** ./interfaces/odbc/convert.c Thu Aug 02 15:28:28 2001 --- ./interfaces/odbc/.#convert.c.1.44 Wed Aug 01 23:36:58 2001 *************** *** 292,301 **** { /* change T/F to 1/0 */ char *s = (char *) value; ! if (s[0] == 'T' || s[0] == 't') s[0] = '1'; else ! s[0] = '0'; } break; --- 292,314 ---- { /* change T/F to 1/0 */ char *s = (char *) value; ! /* Aidan Mountford (aidan@oz.to) 1/08/2001: ! ! >> if (s[0] == 'T' || s[0] == 't') <<< This wont work... ! ! When MoveFirst is called twice on one set of tuples, ! this will have the effect of setting s[0] to 1 on the ! first pass, and s[0] on the second. ! ! This is bad ;) ! ! */ ! ! if (s[0] == 'T' || s[0] == 't' || s[0] == '1') s[0] = '1'; else ! s[0] = '0'; ! } break; *************** *** 1158,1164 **** --- 1189,1198 ---- } else { + + used = stmt->parameters[param_number].used ? *stmt->parameters[param_number].used : SQL_NTS; + buffer = stmt->parameters[param_number].buffer; }