[MDEV-2572] LP:823930 - Wrong result with semijoin materialization and blob fields Created: 2011-08-10 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Timour Katchaounov (Inactive) | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Two test cases from subselect_sj_mat that test materialization
|
| Comments |
| Comment by Timour Katchaounov (Inactive) [ 2011-08-10 ] |
|
Re: Wrong result with semijoin materialization and blob fields insert into t1_1024 values insert into t2_1024 values insert into t3_1024 values – Correct result select left(a1,7), left(a2,7) – Wrong result select left(a1,7), left(a2,7) |
| Comment by Sergei Petrunia [ 2011-09-05 ] |
|
Re: Wrong result with semijoin materialization and blob fields
It seems, the problem is that SJ-Materialization attempts to handle this case, while it should refuse it, like regular materialization did. |
| Comment by Sergei Petrunia [ 2011-09-06 ] |
|
Re: Wrong result with semijoin materialization and blob fields if (result_sink->create_result_table(thd, tmp_columns, TRUE, tmp_table= result_sink->table; /* And then we find out that "tmp_table->s->keys == 0" which causes us not to use |
| Comment by Sergei Petrunia [ 2011-09-06 ] |
|
Re: Wrong result with semijoin materialization and blob fields A better option would be to make subquery_types_allow_materialization() do its job properly and detect all cases where materialization is not applicable. |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 823930 |