fix function convert_tz bug

This commit is contained in:
st0
2022-02-28 20:14:53 +08:00
committed by LINxiansheng
parent 8629461387
commit 0002ca3b94
11 changed files with 318 additions and 241 deletions

View File

@ -37,12 +37,16 @@ public:
static int find_time_zone_pos(const ObString &tz_name,
const ObTimeZoneInfo &tz_info,
ObTimeZoneInfoPos *&tz_info_pos);
static int calc_convert_tz(int64_t &timestamp_data, const ObString &tz_str_s,//source time zone (input2)
template <typename T>
static int calc_convert_tz(int64_t timestamp_data, const ObString &tz_str_s,//source time zone (input2)
const ObString &tz_str_d,//destination time zone (input3)
ObSQLSessionInfo *session);
static int calc(int64_t &timestamp_data, const ObTimeZoneInfoPos &tz_info_pos, int32_t &offset_sec);
static int parse_string(int64_t &timestamp_data, const ObString &tz_str, ObSQLSessionInfo *session, int32_t &offset);
ObSQLSessionInfo *session,
T &result);
static int calc(int64_t &timestamp_data, const ObTimeZoneInfoPos &tz_info_pos,
const bool input_utc_time);
static int parse_string(int64_t &timestamp_data, const ObString &tz_str,
ObSQLSessionInfo *session, const bool input_utc_time);
private:
// disallow copy
DISALLOW_COPY_AND_ASSIGN(ObExprConvertTZ);