Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CBRD-25362] bug fix in SP argument type conversion in PL engine #5226

Merged
merged 7 commits into from
Jun 14, 2024

Conversation

hyunikn
Copy link
Contributor

@hyunikn hyunikn commented May 22, 2024

http://jira.cubrid.org/browse/CBRD-25362

(1) ban illegal type conversions
. time --> datetime, date, timestamp
. date --> time
(2) support legal type conversions
. short --> time, timestamp
. int --> time, timestamp
. bigint --> time, timestamp
. numeric --> timestamp
. float --> time, timestamp
. double --> time, timestamp
(3) check value range when converting a datetime to a timestamp

  . time --> datetime, date, timestamp
  . date --> time
(2) support legal type conversions
  . short --> time, timestamp
  . int --> time, timestamp
  . bigint --> time, timestamp
  . numeric --> timestamp
  . float --> time, timestamp
  . double --> time, timestamp
(3) check value range when converting a datetime to a timestamp
@hyunikn hyunikn self-assigned this May 22, 2024
@hyunikn hyunikn marked this pull request as ready for review May 22, 2024 09:56
LocalDateTime.of(9999, 12, 31, 23, 59, 59, 999);

private static final ZoneOffset TIMEZONE_0 = ZoneOffset.of("Z");
// TODO: update the following value along with the server
private static final ZoneOffset TIMEZONE_SESSION = ZoneOffset.of("+09:00");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be reflected default timezone from server in the future (maybe phase 1 or 2)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. This is a temporary hard-coding

@hyunikn hyunikn merged commit 8f4fc32 into CUBRID:develop Jun 14, 2024
8 of 9 checks passed
@hyunikn hyunikn deleted the CBRD-25362-type-conv-in-pl-engine branch June 14, 2024 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants