dolthub / dolthub/dolt

Better error message for type violation errors

Open
#2,173 0 comments 1 reaction 1 assignee Claimed by @zachmu View on GitHub
bad error message enhancement sql
Dominant language
Go
Stars
24.4k
Forks
873
Avg merge
1d 5h
Merged PRs (30d)
108

Description

When you attempt to insert a value in a column and the value is out of range (i.e. integer too large, string too long), Dolt returns a generic error:

`[HY000][1105] string is too large for column` or similar

This is unhelpful when inserting multiple values in a single statement.

A better error message should:

* Show the column whose constraint failed
* Show the value that was attempted
* Show the full type of the column

Related: https://github.com/dolthub/dolt/issues/2162

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.