From 5f594100ca2af538c68f49f13a86e4ea9c85b464 Mon Sep 17 00:00:00 2001
From: dhb52 <dhb52@126.com>
Date: Wed, 15 May 2024 12:55:57 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20SQLServer=E8=BD=AC=E6=8D=A2insert?=
 =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2=E6=9C=89=E8=AF=AF=EF=BC=8C=E5=AF=BC?=
 =?UTF-8?q?=E8=87=B4=E7=94=A8=E6=88=B7admin=E6=97=A0=E6=B3=95=E7=99=BB?=
 =?UTF-8?q?=E5=BD=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 doc/sql/snail_job_sqlserver.sql | 4 ++--
 doc/tool/dbsync.py              | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/sql/snail_job_sqlserver.sql b/doc/sql/snail_job_sqlserver.sql
index 8b587a36..31f59a25 100644
--- a/doc/sql/snail_job_sqlserver.sql
+++ b/doc/sql/snail_job_sqlserver.sql
@@ -2,7 +2,7 @@
  SnailJob Database Transfer Tool
  Source Server Type    : MySQL
  Target Server Type    : Microsoft SQL Server
- Date: 2024-05-13 23:03:34
+ Date: 2024-05-15 12:54:43
 */
 
 
@@ -1264,7 +1264,7 @@ EXEC sp_addextendedproperty
 GO
 
 INSERT INTO sj_system_user (username, password, role)
-VALUES (N')admin', N'465c194afb65670f38322df087f0a9bb225cc257e43eb4ac5a0c98ef5b3173ac', 2)
+VALUES (N'admin', N'465c194afb65670f38322df087f0a9bb225cc257e43eb4ac5a0c98ef5b3173ac', 2)
 GO
 
 -- sj_system_user_permission
diff --git a/doc/tool/dbsync.py b/doc/tool/dbsync.py
index 2b6b5837..7b70be5f 100755
--- a/doc/tool/dbsync.py
+++ b/doc/tool/dbsync.py
@@ -607,7 +607,7 @@ GO
             # SQLServer: 字符串前加N,hack,是否存在替换字符串内容的风险
             insert_script = (
                 insert_script.replace(", '", ", N'")
-                .replace("VALUES ('", "VALUES (N')")
+                .replace("VALUES ('", "VALUES (N'")
                 .replace("(id, ", "(")
                 .replace("VALUES (1, ", "VALUES (")
                 .replace("now(), ", "getdate(), ")