Synchronization code

This commit is contained in:
sunkaixuan
2023-08-13 18:39:50 +08:00
parent ef37520c13
commit 407c342344
2 changed files with 2 additions and 2 deletions

View File

@@ -262,7 +262,7 @@ namespace SqlSugar
public override string NewUid(MethodCallExpressionModel mode)
{
return " SYS_GUID() ";
return " SUBSTR(LOWER(RAWTOHEX(SYS_GUID())), 1, 8) ||\r\n '-' ||\r\n SUBSTR(LOWER(RAWTOHEX(SYS_GUID())), 9, 4) ||\r\n '-' ||\r\n SUBSTR(LOWER(RAWTOHEX(SYS_GUID())), 13, 4) ||\r\n '-' ||\r\n SUBSTR(LOWER(RAWTOHEX(SYS_GUID())), 17, 4) ||\r\n '-' ||\r\n SUBSTR(LOWER(RAWTOHEX(SYS_GUID())), 21) ";
}
}
}

View File

@@ -388,7 +388,7 @@ namespace SqlSugar
public override string NewUid(MethodCallExpressionModel mode)
{
return " SYS_GUID() ";
return " SUBSTR(LOWER(RAWTOHEX(SYS_GUID())), 1, 8) ||\r\n '-' ||\r\n SUBSTR(LOWER(RAWTOHEX(SYS_GUID())), 9, 4) ||\r\n '-' ||\r\n SUBSTR(LOWER(RAWTOHEX(SYS_GUID())), 13, 4) ||\r\n '-' ||\r\n SUBSTR(LOWER(RAWTOHEX(SYS_GUID())), 17, 4) ||\r\n '-' ||\r\n SUBSTR(LOWER(RAWTOHEX(SYS_GUID())), 21) ";
}
}
}