mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-24 04:53:45 +08:00
Update oracle
This commit is contained in:
@@ -176,6 +176,16 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return Convert.ToInt64(value);
|
return Convert.ToInt64(value);
|
||||||
}
|
}
|
||||||
|
else if (value is TimeSpan ts)
|
||||||
|
{
|
||||||
|
return string.Format(
|
||||||
|
"INTERVAL '{0} {1:D2}:{2:D2}:{3:D2}.{4:D3}' DAY TO SECOND(3)",
|
||||||
|
ts.Days,
|
||||||
|
ts.Hours,
|
||||||
|
ts.Minutes,
|
||||||
|
ts.Seconds,
|
||||||
|
ts.Milliseconds);
|
||||||
|
}
|
||||||
else if (type == UtilConstants.ByteArrayType)
|
else if (type == UtilConstants.ByteArrayType)
|
||||||
{
|
{
|
||||||
++i;
|
++i;
|
||||||
|
@@ -106,6 +106,16 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return value.ObjToBool() ? "1" : "0";
|
return value.ObjToBool() ? "1" : "0";
|
||||||
}
|
}
|
||||||
|
else if (value is TimeSpan ts)
|
||||||
|
{
|
||||||
|
return string.Format(
|
||||||
|
"INTERVAL '{0} {1:D2}:{2:D2}:{3:D2}.{4:D3}' DAY TO SECOND(3)",
|
||||||
|
ts.Days,
|
||||||
|
ts.Hours,
|
||||||
|
ts.Minutes,
|
||||||
|
ts.Seconds,
|
||||||
|
ts.Milliseconds );
|
||||||
|
}
|
||||||
else if (type == UtilConstants.DateTimeOffsetType)
|
else if (type == UtilConstants.DateTimeOffsetType)
|
||||||
{
|
{
|
||||||
var date = UtilMethods.ConvertFromDateTimeOffset((DateTimeOffset)value);
|
var date = UtilMethods.ConvertFromDateTimeOffset((DateTimeOffset)value);
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
<package >
|
<package >
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>SqlSugarCore</id>
|
<id>SqlSugarCore</id>
|
||||||
<version>5.1.4.194-preview24</version>
|
<version>5.1.4.194-preview28</version>
|
||||||
<authors>sunkaixuan</authors>
|
<authors>sunkaixuan</authors>
|
||||||
<owners>果糖大数据科技</owners>
|
<owners>果糖大数据科技</owners>
|
||||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||||
|
Reference in New Issue
Block a user