-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
importccl: Improve error messages when importing mysql dump. #45958
Conversation
Fixes #29625 |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commit message needs a Release Note
Improve error reporting when importing mysql tables using unsupported features (such as fulltext index). Prior to this change, if we attempt to import: CREATE TABLE posts ( id INT NOT NULL AUTO_INCREMENT, title VARCHAR(255) NOT NULL, body TEXT, PRIMARY KEY (id), FULLTEXT KEY (body ) ) We would receive an error message: error executing 'IMPORT TABLE posts FROM MYSQLDUMP ($1)': pq: could not read definition for table "posts" (possible unsupported type?) After this change, the error reporting improves to: error executing 'IMPORT TABLE posts FROM MYSQLDUMP ($1)': pq: mysql parse error: syntax error at position 914 near 'fulltext' Release justification: Bug fix; minor, low/no impact formatting change in the error messages. Release note: improve error messages when importing mysql dump data.
done
…On Tue, Mar 10, 2020 at 3:29 PM David Taylor ***@***.***> wrote:
***@***.**** approved this pull request.
commit message needs a Release Note
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#45958?email_source=notifications&email_token=ANA4FVF75M2MODSIKWTBHBLRG2IIHA5CNFSM4LFGHFJ2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCYYDJ5I#pullrequestreview-372258037>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANA4FVC5SHSJXGDOY657F5TRG2IIHANCNFSM4LFGHFJQ>
.
|
Release note requires a category parenthetical |
bors r+ |
@miretskiy the release note here still looks malformed (it needs the categorization field for the script to group it). |
Build succeeded |
Improve error reporting when importing mysql tables
using unsupported features (such as fulltext index).
Prior to this change, if we attempt to import:
CREATE TABLE posts (
id INT NOT NULL AUTO_INCREMENT,
title VARCHAR(255) NOT NULL,
body TEXT,
PRIMARY KEY (id),
FULLTEXT KEY (body )
)
We would receive an error message:
error executing 'IMPORT TABLE posts FROM MYSQLDUMP ($1)':
pq: could not read definition for table "posts" (possible unsupported type?)
After this change, the error reporting improves to:
error executing 'IMPORT TABLE posts FROM MYSQLDUMP ($1)': pq: mysql parse error:
syntax error at position 914 near 'fulltext'
Release justification: Bug fix; minor, low/no impact formatting
change in the error messages.