Skip to content

select intTypeField,dataTimeTypeField from mysql-table throws SQLDataException: Unsupported conversion from LONG to java.sql.Timestamp #21300

@zrlw

Description

@zrlw

springboot 2.2.6 release
mybatis-spring-boot-starter: 2.1.2
mysql 5.7.24
mapper.xml:

  1. select id, intTypeField, dataTimeTypeField from mysqltable where id=123 for update
  2. select id, dataTimeTypeField, intTypeField from mysqltable where id=123 for update
    the first sql statement will throws java.sql.SQLDataException: Unsupported conversion from LONG to java.sql.Timestamp,
    but the second sql statement (only exchange location of the last two fields) will be ok.
    these two sql statements executed well under springboot 2.1.1 release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fixstatus: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions