test: use type VARCHAR to use utf8 encoding in sqlserver

This commit is contained in:
JimMoen 2023-04-10 16:44:21 +08:00
parent c366267b0f
commit a379d909bf
No known key found for this signature in database
GPG Key ID: 87A520B4F76BA86D
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,9 @@
" msgid VARCHAR(64) NULL,"
" topic VARCHAR(100) NULL,"
" qos tinyint NOT NULL DEFAULT 0,"
" payload NVARCHAR(100) NULL,"
%% use VARCHAR to use utf8 encoding
%% for default, sqlserver use utf16 encoding NVARCHAR()
" payload VARCHAR(100) NULL,"
" arrived DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP)"
).