1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

WL#2486 - natural and using join according to SQL:2003

- Corrected problem with N-way nested natural joins in PS mode.
- Code cleanup
- More asserts to check consistency of name resolution contexts
- Fixed potential memory leak of name resolution contexts
This commit is contained in:
timour@mysql.com
2005-08-19 15:22:30 +03:00
parent 76cacf4522
commit f5fc1543aa
7 changed files with 50 additions and 26 deletions

View File

@@ -6415,8 +6415,7 @@ Name_resolution_context *
make_join_on_context(THD *thd, TABLE_LIST *left_op, TABLE_LIST *right_op)
{
Name_resolution_context *on_context;
if (!(on_context= (Name_resolution_context*)
thd->calloc(sizeof(Name_resolution_context))))
if (!(on_context= new Name_resolution_context))
return NULL;
on_context->init();
on_context->first_name_resolution_table=