boolean support for PostgreSQL?

14 views
Skip to first unread message

Reed Law

unread,
Nov 15, 2013, 3:02:18 PM11/15/13
to db...@googlegroups.com
I get this error when trying to test a table with a boolean field:

    java.lang.UnsupportedOperationException: Type BOOLEAN is not supported
	at dbfit.environment.PostgresEnvironment.getSqlType(PostgresEnvironment.java:145)
	at dbfit.environment.PostgresEnvironment.readIntoParams(PostgresEnvironment.java:86)
	at dbfit.environment.PostgresEnvironment.getAllColumns(PostgresEnvironment.java:68)
	at dbfit.api.DbTable.(DbTable.java:23)
	at dbfit.fixture.Insert.getTargetDbObject(Insert.java:33)
	at dbfit.fixture.DbObjectExecutionFixture.doRows(DbObjectExecutionFixture.java:53)
	at fit.Fixture.doTable(Fixture.java:154)
	at fitlibrary.traverse.AlienTraverseHandler.doTable(AlienTraverseHandler.java:18)
	at fitlibrary.traverse.workflow.DoTraverseInterpreter.interpretWholeTable(DoTraverseInterpreter.java:99)
	at fitlibrary.traverse.workflow.DoTraverseInterpreter.interpretWholeTable(DoTraverseInterpreter.java:87)
	at fitlibrary.DoFixture.interpretWholeTable(DoFixture.java:69)
	at fitlibrary.suite.InFlowPageRunner.run(InFlowPageRunner.java:34)
	at fitlibrary.DoFixture.interpretTables(DoFixture.java:42)
	at dbfit.DatabaseTest.interpretTables(DatabaseTest.java:25)
	at fit.Fixture.doTables(Fixture.java:80)
	at fit.FitServer.process(FitServer.java:81)
	at fit.FitServer.run(FitServer.java:56)
	at fit.FitServer.main(FitServer.java:41)

Is this due to a limitation of the JBDC or can it be easily added to dbfit? I would help out but am a complete Java novice.

Jake Benilov

unread,
Nov 16, 2013, 11:41:05 AM11/16/13
to db...@googlegroups.com
Hi Reed,

I've made a patch that should add boolean support: https://github.com/benilovj/dbfit/pull/177

If you could try running your tests with the version from here: https://github.com/benilovj/dbfit/pull/177#issuecomment-28630308 and let me know if the issue is solved, that'd be really good.

cheers,
Jake
Reply all
Reply to author
Forward
0 new messages