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-23679] Adding a configuration parameter and control for strict type #2460

Merged
merged 1 commit into from
Sep 23, 2020
Merged

[CBRD-23679] Adding a configuration parameter and control for strict type #2460

merged 1 commit into from
Sep 23, 2020

Conversation

beyondykk9
Copy link
Contributor

@beyondykk9 beyondykk9 commented Sep 23, 2020

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

This is a revised version of #2451, #2419, and #2392

fix: tp_value_cast for wrapped cast which is added newly for proper insert/update statement processing.

example:
create table ttt (a char(10));
insert into ttt values (select cast('123456789012' as char(10))); -- successful running
insert into ttt values (cast('123456789012' as char(10))); -- successful running
insert into ttt values (select cast('123456789012' as char(11))); -- failure (overflow error)
insert into ttt values (cast('123456789012' as char(11))); -- failure (overflow error)

in xasl generation, a cast function is wrapped when two domains on assignment operation are not compatible.
we have to process the wrapped cast in special not to truncate string insert or update statement.

@beyondykk9 beyondykk9 merged commit 4cc3343 into CUBRID:develop Sep 23, 2020
@beyondykk9 beyondykk9 deleted the CBRD-23679 branch September 23, 2020 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants