Re: [Maria-developers] Open and close a TABLE_LIST at random place in code

2018-05-31 Thread Sergei Golubchik
Hi, Eugene! On May 31, Eugene Kosov wrote: > Hello. > > I need to know whether a table is a SYSTEM VERSIONING table. It's > needed for MDEV-16231. And also it's needed to disable TRUNCATE TABLE > for MDEV-15966: one code path do not open table at all. Hmm, and your approach was to open all table

Re: [Maria-developers] Open and close a TABLE_LIST at random place in code

2018-05-31 Thread Eugene Kosov
Hello. I need to know whether a table is a SYSTEM VERSIONING table. It's needed for MDEV-16231. And also it's needed to disable TRUNCATE TABLE for MDEV-15966: one code path do not open table at all. 31.05.2018, 14:11, "Sergei Golubchik" : > Hi, Eugene! > > What are you trying to do in the first

Re: [Maria-developers] Open and close a TABLE_LIST at random place in code

2018-05-31 Thread Sergei Golubchik
Hi, Eugene! What are you trying to do in the first place? On May 30, Eugene Kosov wrote: > Hello. > > I need to see a table structure while executing some query (DELETE in my > case, but there will be more query types in future). I have a TABLE_LIST > which came from a parser. Now I'm opening

[Maria-developers] Open and close a TABLE_LIST at random place in code

2018-05-30 Thread Eugene Kosov
Hello. I need to see a table structure while executing some query (DELETE in my case, but there will be more query types in future). I have a TABLE_LIST which came from a parser. Now I'm opening it with open_table_only_view_structure(), examine table structure and close it, trying to prevent an