-
-
Notifications
You must be signed in to change notification settings - Fork 540
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
EXPLAIN with uuid_to_bin is not working in case primary key in IntelliJ IDEA #5661
Comments
One difference is that this query probably has an |
In this case it will be probably be this block in if ft, ok := i.Table.(sql.FilteredTable); ok {
var filters []string
for _, f := range ft.Filters() {
filters = append(filters, f.String())
}
if len(filters) > 0 {
pr.WriteChildren(fmt.Sprintf("filters: %v", filters))
}
} |
In case foreign key the error also presents create table transaction_meta(
id binary(16) DEFAULT (UUID_TO_BIN(uuid())) primary key,
transaction_state varchar(32) NOT NULL,
entity_ids JSON NOT NULL
);
insert into transaction_meta values
(uuid_to_bin('d077821f-f54e-4ce9-978f-8478c1120f8b'), 'SUCCESSFUL', '["478f79d3-4a90-4efc-9d9b-ea1baa15dc1a", "36c7c702-185f-4f4b-a700-12c7f1f943b0"]')
;
create table transaction_detail(
id binary(16) DEFAULT (UUID_TO_BIN(uuid())) primary key,
detail varchar(255),
txm_id binary(16) not null,
foreign key (txm_id) references transaction_meta(id)
);
insert into transaction_detail (detail, txm_id) values
('test string', uuid_to_bin('d077821f-f54e-4ce9-978f-8478c1120f8b'));
explain select * from transaction_detail where txm_id = uuid_to_bin('d077821f-f54e-4ce9-978f-8478c1120f8b'); |
Yeah this is going to be equivalent. We generate an index for
|
These two scripts appear to execute correctly in version |
version 0.75.9.
The issue is very similar to #5287
log
screen

just checked, it works in MySQL
The text was updated successfully, but these errors were encountered: