Skip to content

Commit

Permalink
Fixed CORE-6494 - Inconsistent translation "string->timestamp->string…
Browse files Browse the repository at this point in the history
…->timestamp" in dialect 1.
  • Loading branch information
asfernandes committed Apr 6, 2021
1 parent 41b375f commit 90f1c27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/common/cvt.cpp
Expand Up @@ -2232,7 +2232,7 @@ static void datetime_to_text(const dsc* from, dsc* to, Callbacks* cb)
else
{
// Prior to BLR version 5 timestamps were converted to text in the dd-MMM-yyyy format
sprintf(p, "%d-%.3s-%d",
sprintf(p, "%2.2d-%.3s-%4.4d",
times.tm_mday,
FB_LONG_MONTHS_UPPER[times.tm_mon], times.tm_year + 1900);
}
Expand Down
4 changes: 2 additions & 2 deletions src/isql/isql.epp
Expand Up @@ -7759,13 +7759,13 @@ static unsigned print_item(TEXT** s, const IsqlVar* var, const unsigned length)
else
{
if (setValues.Time_display)
sprintf(d, "%2d-%s-%4d %2.2d:%2.2d:%2.2d.%4.4" ULONGFORMAT,
sprintf(d, "%2.2d-%s-%4.4d %2.2d:%2.2d:%2.2d.%4.4" ULONGFORMAT,
times.tm_mday, alpha_months[times.tm_mon],
times.tm_year + 1900, times.tm_hour, times.tm_min,
times.tm_sec,
fractions);
else
sprintf(d, "%2d-%s-%4d", times.tm_mday,
sprintf(d, "%2.2d-%s-%4.4d", times.tm_mday,
alpha_months[times.tm_mon], times.tm_year + 1900);
}

Expand Down

0 comments on commit 90f1c27

Please sign in to comment.