Merge pull request #6335 from dataease/pr@dev-v2@fix_bool

fix: calcite中布尔类型将使用true/false表示,而不是1/0
This commit is contained in:
Junjun 2023-10-24 16:30:19 +08:00 committed by GitHub
commit 33305cbdce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -419,7 +419,7 @@ public class CalciteProvider {
} }
break; break;
case Types.BOOLEAN: case Types.BOOLEAN:
row[j] = rs.getBoolean(j + 1) ? "1" : "0"; row[j] = rs.getBoolean(j + 1) ? "true" : "false";
break; break;
default: default:
if (metaData.getColumnTypeName(j + 1).toLowerCase().equalsIgnoreCase("blob")) { if (metaData.getColumnTypeName(j + 1).toLowerCase().equalsIgnoreCase("blob")) {