Error setting database config property for IDatabaseConnection (HSQLDB)

后端 未结 3 626
栀梦
栀梦 2021-01-21 01:04

I\'ve included fully testable code below, which generates the following error when supplied with a dataset xml containing empty fields. A sample dataset.xml

3条回答
  •  清酒与你
    2021-01-21 01:35

    You must override method setUpDatabaseConfig(DatabaseConfig config) as follows:

    @Override
    protected void setUpDatabaseConfig(DatabaseConfig config) {
        config.setProperty(DatabaseConfig.FEATURE_ALLOW_EMPTY_FIELDS, true); 
    }
    

    Hope it helps

提交回复
热议问题