【发布时间】:2015-08-10 13:12:29
【问题描述】:
我有一个带有 JSON 列的表,当我使用数据集运行测试时。
org.dbunit.dataset.NoSuchColumnException: hero.JSON - (Non-uppercase
input column: json) in ColumnNameToIndexes cache map. Note that the map's
column names are NOT case sensitive.
我的数据集:
<?xml version="1.0" encoding="UTF-8"?>
<dataset>
<hero id='000580548' json='{"id" : 1,"name" : "mySuperHero"}'/>
<hero_profile id='000580548-mySuperHero' json='{"habilities": [], "stars" : 7}'/>
</dataset>
Obs:我的表已经存在于数据库中。
【问题讨论】: