There are some bug in DB API about type.