1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

ADD CONSTRAINT IF NOT EXISTS didn't work in SP

"if not exists" must be stored in a separate read-only property
This commit is contained in:
Sergei Golubchik
2022-11-03 19:17:25 +01:00
parent a5eff044cb
commit cce76fef38
5 changed files with 54 additions and 5 deletions

View File

@ -4375,7 +4375,7 @@ public:
bool if_not_exists)
{
constr->name= name;
constr->flags= if_not_exists ? VCOL_CHECK_CONSTRAINT_IF_NOT_EXISTS : 0;
constr->if_not_exists= if_not_exists;
alter_info.check_constraint_list.push_back(constr);
return false;
}