We use postgres 8.3-8.4 with boolean values without any problems. However, when using an ANTLR3-based HQL analyzer, it began to be discriminating about boolean substitution, so we made our own dialect with the following redefinition:
public override string ToBooleanValueString( bool value ) { return value ? "true" : "false"; }
However, we used NHibernate.Dialect.PostgreSQL82Dialect, not a generic one. What version of postgres are you working on?
EDIT: Oh, sorry, I did not follow that you had a character column (1). maybe this will help instead (with quotes)?
return value ? "'t'" : "'f'";
jishi source share