Skip to content

Commit 90f1c27

Browse files
committed
Fixed CORE-6494 - Inconsistent translation "string->timestamp->string->timestamp" in dialect 1.
1 parent 41b375f commit 90f1c27

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/common/cvt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2232,7 +2232,7 @@ static void datetime_to_text(const dsc* from, dsc* to, Callbacks* cb)
22322232
else
22332233
{
22342234
// Prior to BLR version 5 timestamps were converted to text in the dd-MMM-yyyy format
2235-
sprintf(p, "%d-%.3s-%d",
2235+
sprintf(p, "%2.2d-%.3s-%4.4d",
22362236
times.tm_mday,
22372237
FB_LONG_MONTHS_UPPER[times.tm_mon], times.tm_year + 1900);
22382238
}

src/isql/isql.epp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7759,13 +7759,13 @@ static unsigned print_item(TEXT** s, const IsqlVar* var, const unsigned length)
77597759
else
77607760
{
77617761
if (setValues.Time_display)
7762-
sprintf(d, "%2d-%s-%4d %2.2d:%2.2d:%2.2d.%4.4" ULONGFORMAT,
7762+
sprintf(d, "%2.2d-%s-%4.4d %2.2d:%2.2d:%2.2d.%4.4" ULONGFORMAT,
77637763
times.tm_mday, alpha_months[times.tm_mon],
77647764
times.tm_year + 1900, times.tm_hour, times.tm_min,
77657765
times.tm_sec,
77667766
fractions);
77677767
else
7768-
sprintf(d, "%2d-%s-%4d", times.tm_mday,
7768+
sprintf(d, "%2.2d-%s-%4.4d", times.tm_mday,
77697769
alpha_months[times.tm_mon], times.tm_year + 1900);
77707770
}
77717771

0 commit comments

Comments
 (0)