View | Details | Raw Unified | Return to bug 260194 | Differences between
and this patch

Collapse All | Expand All

(-)src/sql_common_m.c (-3 / +3 lines)
Lines 259-265 Link Here
259
259
260
    strncat(envbuf.ptr, "ELAPSED_TIME=", envbuf.end-envbuf.ptr);
260
    strncat(envbuf.ptr, "ELAPSED_TIME=", envbuf.end-envbuf.ptr);
261
    tmpptr = envbuf.ptr + strlen(envbuf.ptr);
261
    tmpptr = envbuf.ptr + strlen(envbuf.ptr);
262
    snprintf(tmpptr, envbuf.end-tmpptr, "%lu", idata->elap_time);
262
    snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->elap_time);
263
    ptrs[count] = envbuf.ptr;
263
    ptrs[count] = envbuf.ptr;
264
    envbuf.ptr += strlen(envbuf.ptr)+1;
264
    envbuf.ptr += strlen(envbuf.ptr)+1;
265
    count++;
265
    count++;
Lines 292-298 Link Here
292
292
293
    strncat(envbuf.ptr, "SQL_HISTORY_BASETIME=", envbuf.end-envbuf.ptr);
293
    strncat(envbuf.ptr, "SQL_HISTORY_BASETIME=", envbuf.end-envbuf.ptr);
294
    tmpptr = envbuf.ptr + strlen(envbuf.ptr);
294
    tmpptr = envbuf.ptr + strlen(envbuf.ptr);
295
    snprintf(tmpptr, envbuf.end-tmpptr, "%lu", idata->basetime);
295
    snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->basetime);
296
    ptrs[count] = envbuf.ptr;
296
    ptrs[count] = envbuf.ptr;
297
    envbuf.ptr += strlen(envbuf.ptr)+1;
297
    envbuf.ptr += strlen(envbuf.ptr)+1;
298
    count++;
298
    count++;
Lines 303-309 Link Here
303
303
304
    strncat(envbuf.ptr, "SQL_HISTORY_TIMESLOT=", envbuf.end-envbuf.ptr);
304
    strncat(envbuf.ptr, "SQL_HISTORY_TIMESLOT=", envbuf.end-envbuf.ptr);
305
    tmpptr = envbuf.ptr + strlen(envbuf.ptr);
305
    tmpptr = envbuf.ptr + strlen(envbuf.ptr);
306
    snprintf(tmpptr, envbuf.end-tmpptr, "%lu", idata->timeslot);
306
    snprintf(tmpptr, envbuf.end-tmpptr, "%u", idata->timeslot);
307
    ptrs[count] = envbuf.ptr;
307
    ptrs[count] = envbuf.ptr;
308
    envbuf.ptr += strlen(envbuf.ptr)+1;
308
    envbuf.ptr += strlen(envbuf.ptr)+1;
309
    count++;
309
    count++;

Return to bug 260194