mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-16 07:57:33 +08:00
Update Gbase
This commit is contained in:
parent
35287da6a9
commit
9b0d3bed1c
@ -132,7 +132,7 @@ namespace SqlSugar.GBase
|
|||||||
}
|
}
|
||||||
else if (type == UtilConstants.BoolType)
|
else if (type == UtilConstants.BoolType)
|
||||||
{
|
{
|
||||||
return value.ObjToBool() ? "t" : "f";
|
return string.Format("CAST({0} AS boolean)", value.ObjToBool()?1:0) ;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -97,7 +97,7 @@ namespace SqlSugar.GBase
|
|||||||
}
|
}
|
||||||
else if (value is bool)
|
else if (value is bool)
|
||||||
{
|
{
|
||||||
return value.ObjToString().ToLower();
|
return string.Format("CAST({0} AS boolean)", value.ObjToBool() ? 1 : 0);
|
||||||
}
|
}
|
||||||
else if (type == UtilConstants.StringType || type == UtilConstants.ObjType)
|
else if (type == UtilConstants.StringType || type == UtilConstants.ObjType)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user