Skip to content

Commit b899f4c

Browse files
committed
Kill import if db name is invalid
Signed-off-by: mdouglas47 <[email protected]>
1 parent 509a4ca commit b899f4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/import_util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ enum bulk_import_validation_rc validate_bulk_import_inputs(const char * const de
1818
if (!str_is_alphanumeric(bulk_import_src_dbname, NON_ALPHANUM_CHARS_ALLOWED_IN_DBNAME)) {
1919
logmsg(LOGMSG_WARN, "%s: Bulk import source db name '%s' has illegal characters\n",
2020
__func__, bulk_import_src_dbname);
21-
rc = BULK_IMPORT_VALIDATION_WARN;
21+
rc = BULK_IMPORT_VALIDATION_FATAL;
2222
}
2323
if (bulk_import_src_tablename && !str_is_alphanumeric(bulk_import_src_tablename, NON_ALPHANUM_CHARS_ALLOWED_IN_TABLENAME)) {
2424
logmsg(LOGMSG_WARN, "%s: Bulk import source table name '%s' has illegal characters\n",

0 commit comments

Comments
 (0)