mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 11:27:39 +02:00
SQL: versioning in embedded JOINs [fixes #160]
This commit is contained in:
parent
e8ae9f1ae9
commit
14f007f907
3 changed files with 30 additions and 2 deletions
|
|
@ -834,6 +834,12 @@ int vers_setup_select(THD *thd, TABLE_LIST *tables, COND **where_expr,
|
|||
dst_cond= &table->on_expr;
|
||||
}
|
||||
|
||||
if (TABLE_LIST *t= table->embedding)
|
||||
{
|
||||
if (t->on_expr)
|
||||
dst_cond= &t->on_expr;
|
||||
}
|
||||
|
||||
const char *fstart= table->table->vers_start_field()->field_name;
|
||||
const char *fend= table->table->vers_end_field()->field_name;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue