Update Oracle 达梦 newid()

This commit is contained in:
sunkaixuan
2023-08-13 18:24:06 +08:00
parent e49d39f968
commit 10017560f9
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) ";
}
}
}