summaryrefslogtreecommitdiff
path: root/mysql-test/suite/mariabackup/suite.opt
diff options
context:
space:
mode:
authorAnel Husakovic <anelhusakovic88@gmail.com>2018-04-20 07:06:25 +0000
committerVicențiu-Marian Ciorbaru <cvicentiu@gmail.com>2018-07-01 22:32:55 +0300
commit8639e288086247ce39917f4cb55191c8bb5b5a8c (patch)
tree76e2ad53723f2507da133e2855033f8d2de2a3be /mysql-test/suite/mariabackup/suite.opt
parentb71c9ae030ecafb31bc0b424a19d1354f2dd424b (diff)
downloadmariadb-git-8639e288086247ce39917f4cb55191c8bb5b5a8c.tar.gz
MDEV-16630: Ambiguous error message when check constraint matches table name
One can create table with the same name for `field` and `table` `check` constraint. For example: `create table t(a int check(a>0), constraint a check(a>10));` But when inserting new rows same error is always raised. For example with ```insert into t values (-1);``` and ```insert into t values (10);``` same error `ER_CONSTRAINT_FAILED` is obtained and it is not clear which constraint is violated. This patch solve this error so that in case if field constraint is violated the first parameter in the error message is `table.field_name` and if table constraint is violated the first parameter in error message is `constraint_name`.
Diffstat (limited to 'mysql-test/suite/mariabackup/suite.opt')
0 files changed, 0 insertions, 0 deletions