8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 10:00:38 +01:00

Allow to use, for example, time zones Etc/GMT+1 and Etc/GMT-1.

This commit is contained in:
Adriano dos Santos Fernandes 2018-05-11 13:24:06 -03:00
parent 46e954f863
commit d3df86068a

View File

@ -706,8 +706,17 @@ static USHORT makeFromRegion(const char* str, unsigned strLen)
const char* start = str;
while (str < end && ((*str >= 'a' && *str <= 'z') || (*str >= 'A' && *str <= 'Z') || *str == '_' || *str == '/'))
while (str < end &&
((*str >= 'a' && *str <= 'z') ||
(*str >= 'A' && *str <= 'Z') ||
*str == '_' ||
*str == '/') ||
(str != start && *str >= '0' && *str <= '9') ||
(str != start && *str == '+') ||
(str != start && *str == '-'))
{
++str;
}
unsigned len = str - start;