We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please answer these questions before submitting your issue. Thanks!
create table t(a int); create table s(a int unsigned); insert into t value(-1); insert into s value(1);
select * from t union all select * from s; +------+ | a | +------+ | -1 | | 1 | +------+ select * from s union all select * from t; +------+ | a | +------+ | 0 | | 1 | +------+
select * from t union all select * from s; +------+ | a | +------+ | -1 | | 1 | +------+ select * from s union all select * from t; +------+ | a | +------+ | -1 | | 1 | +------+
tidb-server -V
select tidb_version();
Release Version: v2.1.0-beta-61-g44e34bd-dirty Git Commit Hash: 44e34bd30468fb35df4526d37c8511b259c6794d Git Branch: castintasdecimal UTC Build Time: 2018-07-17 09:39:23 GoVersion: go version go1.10.1 darwin/amd64 Race Enabled: false TiKV Min Version: 2.1.0-alpha.1-ff3dd160846b7d1aed9079c389fc188f7f5ea13e
The text was updated successfully, but these errors were encountered:
The result of mysql seems strange... Is it mysql 5.7?
Sorry, something went wrong.
yes, mysql 5.7 I think it's somewhat reasonable, since the result type is an aggregate type of two types.
And it seems the unsigned flag of the first column would affect the final type unsigned flag.
lysu
Successfully merging a pull request may close this issue.
Please answer these questions before submitting your issue. Thanks!
tidb-server -V
or runselect tidb_version();
on TiDB)?The text was updated successfully, but these errors were encountered: