Some fixes

1. Updated test case
    1.1 For resultset rs, when rs.getInt() and rs.getLong() return SQL
null, it return 0.
2. Get columns according to ordinal_position asc to make sure
appendColumn sequentially.