File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
ncm-mysql/src/main/pan/components/mysql Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,11 @@ function component_mysql_valid = {
30
30
31
31
32
32
function component_mysql_check_db_script = {
33
- if (( exists(SELF['file']) && is_defined(SELF['file'])) ||
34
- (exists (SELF[' content' ]) && is_defined (SELF[' content' ]))) {
35
- return (true);
33
+ if (
34
+ (exists (SELF[' file' ]) && is_defined (SELF[' file' ])) ||
35
+ (exists (SELF[' content' ]) && is_defined (SELF[' content' ]))
36
+ ) {
37
+ return (true);
36
38
} else {
37
39
error (' Invalid DB script : either script name or script content must be specified' );
38
40
};
@@ -52,7 +54,8 @@ function component_mysql_password_valid = {
52
54
type component_mysql_user_right = string with match (SELF, ' ^(ALL( PRIVILEGES)?|ALTER( ROUTINE)?|' +
53
55
' CREATE( (ROUTINE|TEMPORARY TABLES|USER|VIEW))?|DELETE|DROP|EVENT|EXECUTE|FILE|GRANT OPTION|INDEX|INSERT|' +
54
56
' LOCK TABLES|PROCESS|REFERENCES|RELOAD|REPLICATION (CLIENT|SLAVE)|SELECT|SHOW (DATABASES|VIEW)|SHUTDOWN|' +
55
- ' SUPER|TRIGGER|UPDATE|USAGE)$' );
57
+ ' SUPER|TRIGGER|UPDATE|USAGE)$'
58
+ );
56
59
57
60
58
61
type component_mysql_db_user = {
You can’t perform that action at this time.
0 commit comments