Update Gbase

This commit is contained in:
sunkaixuan 2023-08-09 20:28:28 +08:00
parent 35287da6a9
commit 9b0d3bed1c
2 changed files with 2 additions and 2 deletions

View File

@ -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
{

View File

@ -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)
{