Skip to content

sqlite Long type value convert bug #3242

Closed
@sailingsky

Description

@sailingsky

MyBatis version

3.5.14

Database vendor and version

sqlite 3.45.0
sqlite-jdbc 3.46.1.0

Test case or example project

example project: https://github.com/sailingsky/sqlite-test.git

Steps to reproduce

there are two records in table test:

id       name
22	test22
850361281191579648	 tt

run post request: https://localhost:8083/test/maps

Expected result

[{"name":"test22","id":22},{"name":" tt","id":850361281191579648}]

Actual result

[{"name":"test22","id":22},{"name":" tt","id":1881903104}]

the second record's id value is wrong. the related issue had been submit to sqlite-jdbc: xerial/sqlite-jdbc#1177 . FYI

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions