-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit len of sp name for triggers/consumers to 28
Signed-off-by: Morgan Douglas <[email protected]> Tweak Signed-off-by: Morgan Douglas <[email protected]> Address review Signed-off-by: Morgan Douglas <[email protected]> Tweak Signed-off-by: Morgan Douglas <[email protected]> Change error message Signed-off-by: Morgan Douglas <[email protected]> Remove LUA_TAG_LEN Signed-off-by: Morgan Douglas <[email protected]> Misc Signed-off-by: Morgan Douglas <[email protected]> Tweak Signed-off-by: Morgan Douglas <[email protected]> Less hardcode Signed-off-by: Morgan Douglas <[email protected]> Capitalization tweak Signed-off-by: Morgan Douglas <[email protected]> Tweak test Signed-off-by: Morgan Douglas <[email protected]>
- Loading branch information
Showing
9 changed files
with
72 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(version='sample') | ||
(version='sample') | ||
(version='sample') | ||
[create procedure len_is_32_______________________ version 'sample' { | ||
local function main() | ||
end | ||
}] failed with rc -3 procedure name must not exceed 31 characters | ||
[create lua consumer len_is_29____________________ on (table t for update of i)] failed with rc -3 procedure name must not exceed 28 characters | ||
(name='len_is_28___________________', type='consumer', tbl_name='t', event='upd', col='i', seq='N') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
create table t(i int)$$ | ||
create procedure len_is_28___________________ version 'sample' { | ||
local function main() | ||
end | ||
}$$ | ||
create procedure len_is_29____________________ version 'sample' { | ||
local function main() | ||
end | ||
}$$ | ||
create procedure len_is_31______________________ version 'sample' { | ||
local function main() | ||
end | ||
}$$ | ||
create procedure len_is_32_______________________ version 'sample' { | ||
local function main() | ||
end | ||
}$$ | ||
create lua consumer len_is_28___________________ on (table t for update of i) | ||
create lua consumer len_is_29____________________ on (table t for update of i) | ||
select * from comdb2_triggers where name like 'len_is_%' |