The Wayback Machine - http://web.archive.org/web/20220525184128/https://github.com/dolthub/dolt/issues/3148
Skip to content
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

Bad error message for string is too large for column #3148

Open

VinaiRachakonda opened this issue Apr 4, 2022 · 1 comment
Open

Bad error message for string is too large for column #3148

VinaiRachakonda opened this issue Apr 4, 2022 · 1 comment
Labels

Comments

@VinaiRachakonda
Copy link
Contributor

@VinaiRachakonda VinaiRachakonda commented Apr 4, 2022

Consider the following table:

dsimple> create table t(val char(3));
dsimple> insert into t values ('dasdsa');
string is too large for column

Dolt should add to the error message the name of the offending column like mysql

mysql> insert into t values ('dasdsa');
ERROR 1406 (22001): Data too long for column 'val' at row 1
@aleclarson
Copy link

@aleclarson aleclarson commented Apr 30, 2022

I'm getting similar error when using dolt diff

diff --dolt a/foo b/foo
--- a/foo @ v8f05butvl7q9n72kiidnqg5vvp4so66
+++ b/foo @ 9i9hs0ls3slb3cp0u70c275sn0akgmst
Failed transforming row
split_diffs
string '%!v(MISSING)' is too large for column '%!v(MISSING)'

Would be great to have something more helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants