mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 05:13:27 +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)
|
||||
{
|
||||
return value.ObjToBool() ? "t" : "f";
|
||||
return string.Format("CAST({0} AS boolean)", value.ObjToBool()?1:0) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -97,7 +97,7 @@ namespace SqlSugar.GBase
|
||||
}
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user