我有一个java实体,它有一个布尔列:
private Boolean enabled;
void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
Boolean getEnabled() {
return this.enabled;
}
当我尝试使用true设置启用时,我会出错:
org.postgresql.util.PSQLException: ERROR: column "enabled" is of type bit but expression is of type boolean
Hint: You will need to rewrite or cast the expression.
Postgresql支持布尔类型,为什么我会得到上面的错误?