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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user