-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
bug: CREATE TABLE abcÿdef
(i int)engine=tianmu;Unable to insert data
#362
Comments
Delay insert process to get table name problem record1. The problemFailed to insert data into a table with a table name with special characters (for example, spaces)
2. the cause of the problemWhen a table named
The stack for creating the table is as follows:
The tablename_to_filename function uses the table name
2. insert data processIn the HandleDelayedLoad function of the delayed insertion process of the tainmu engine, the created .frm file is used to parse the table name when obtaining the table name.
After obtaining the table name, the insertion process needs to open and lock the table, and once again use the table name abc@0020def as a parameter to call strconvert() through the function tablename_to_filename to convert the table name to abc@00400020def. The stack is as follows:
Finally open the table in the open_tables process of inserting data as abc@00400020def path="./lthdt1/abc@00400020def.frm" 3.solutionAfter HandleDelayedLoad obtains the table name from the abc@0020def.frm file, it adds the function filename_to_tablename to call, and converts the converted table name abc@0020def.frm to the original table name |
Describe the problem
Expected behavior
How To Reproduce
Environment
Are you interested in submitting a PR to solve the problem?
The text was updated successfully, but these errors were encountered: