javaでpostgresqlテーブルからブール値を出力するのに問題があります。
テーブル:
java=# select * from Materias;
codigo | nombre | contenido | troncal
--------+--------+-----------+---------
1 | | | f
2 | | | f
3 | | | f
4 | | | t
5 | | | t
6 | | | t
getStringを使用した出力
linea = String.format("%-15d %-20s %-10s", resultado.getInt(1), resultado.getString(2), resultado.getString(3));
Codigo Nombre Troncal
1 null
2 null
3 null
4 null
5 null
6 null
getBooleanを使用した出力
linea = String.format("%-15d %-20s %-10s", resultado.getInt(1), resultado.getString(2), resultado.getBoolean(3));
Codigo Nombre Troncal
1 false
2 false
3 false
4 false
5 false
6 false