WIP: MDEV-18827: Create utility to parse frm files and print their DDL#2191
WIP: MDEV-18827: Create utility to parse frm files and print their DDL#2191mazrex wants to merge 13 commits intoMariaDB:10.10from
Conversation
|
It is work in progress @cvicentiu |
|
Hi @mazrex ! This is a good first commit. Here is my feedback on it:
In your next commit implement the bare minimum syntax for create table and one or two column types, say Then, create an Here's a test file that shows how you can run external commands as well as reference the datadirectory from within MTR. Feel free to reach out if you get stuck. :) |
|
Thanks for the feedback :) @cvicentiu |
|
Hi @mazrex! How is it going with implementing the review feedback? I'd like to see it done before the GSoC midterm evaluation deadline. |
I have been working on it. I will make a commit soon. |
|
I have implemented the review feedback work. @cvicentiu |
|
Hi @mazrex ! I see some more work has gone into this. What would be good is if you can expand the test suite with more cases, such as partitioned tables, what happens when the program gets called on a non-existing frm or what happens when using custom data types, such as inet datatype. https://mariadb.com/kb/en/inet6/ Improving testing will help us understand what we're missing functionality wise :) Also, note that your program doesn't compile on linux distributions. Have a look at the failing checks (click on details) and see if you can fix those too. |
|
Hi @cvicentiu! I have fixed the problem with Linux distributions. I will work on expanding the test suite :) |
fa7a5c3 to
115a90b
Compare
115a90b to
934f09c
Compare
|
To fix the other deb packaging builds - can you add usr/bin/mariadb-frm to debian/mariadb-client.install please. |
Sure. I will work on it. :) |
0f59d8a to
efec22d
Compare
|
Hello, |
Hi Hinal, |

Description
The utility program parses a .frm file and generates the "CREATE TABLE" statement for the table.
How can this PR be tested?
mariafrm.test
Basing the PR against the correct MariaDB version