mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-26 18:59:17 +08:00
Update oracle
This commit is contained in:
@@ -57,7 +57,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
date = Convert.ToDateTime("1900-1-1");
|
date = Convert.ToDateTime("1900-1-1");
|
||||||
}
|
}
|
||||||
return "to_date('" + date.ToString("yyyy-MM-dd HH:mm:ss") + "', 'YYYY-MM-DD HH24:MI:SS') ";
|
return "to_timestamp('" + date.ToString("yyyy-MM-dd HH:mm:ss.ffffff") + "', 'YYYY-MM-DD HH24:MI:SS.FF') ";
|
||||||
}
|
}
|
||||||
else if (type.IsEnum())
|
else if (type.IsEnum())
|
||||||
{
|
{
|
||||||
@@ -83,7 +83,7 @@ namespace SqlSugar
|
|||||||
else if (type == UtilConstants.DateTimeOffsetType)
|
else if (type == UtilConstants.DateTimeOffsetType)
|
||||||
{
|
{
|
||||||
var date = UtilMethods.ConvertFromDateTimeOffset((DateTimeOffset)value);
|
var date = UtilMethods.ConvertFromDateTimeOffset((DateTimeOffset)value);
|
||||||
return "to_date('" + date.ToString("yyyy-MM-dd HH:mm:ss") + "', 'YYYY-MM-DD HH24:MI:SS') ";
|
return "to_timestamp('" + date.ToString("yyyy-MM-dd HH:mm:ss.ffffff") + "', 'YYYY-MM-DD HH24:MI:SS.FF') ";
|
||||||
}
|
}
|
||||||
else if (type == UtilConstants.StringType || type == UtilConstants.ObjType)
|
else if (type == UtilConstants.StringType || type == UtilConstants.ObjType)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user