Skip to content

Commit

Permalink
plugins: FromHost must be 63 characters long
Browse files Browse the repository at this point in the history
According to RFC 1035 the hostname without domain may be up to 63
characters long. Consider this when creating SQL databases.

Closes #5309

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
  • Loading branch information
xypron committed Jan 15, 2024
1 parent 4c11c58 commit 1717be2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/ommysql/createDB.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CREATE TABLE SystemEvents
DeviceReportedTime datetime NULL,
Facility smallint NULL,
Priority smallint NULL,
FromHost varchar(60) NULL,
FromHost varchar(63) NULL,
Message text,
NTSeverity int NULL,
Importance int NULL,
Expand Down
2 changes: 1 addition & 1 deletion plugins/ompgsql/createDB.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CREATE TABLE SystemEvents
DeviceReportedTime timestamp without time zone NULL,
Facility smallint NULL,
Priority smallint NULL,
FromHost varchar(60) NULL,
FromHost varchar(63) NULL,
Message text,
NTSeverity int NULL,
Importance int NULL,
Expand Down

0 comments on commit 1717be2

Please sign in to comment.