The mybatis column type is invalid, and mybatis is invalid.

Source: Internet
Author: User

The mybatis column type is invalid, and mybatis is invalid.

Project error:
[FaultEvent fault = [RPC Fault faultString = "org. springframework. jdbc. uncategorizedSQLException: Error setting null parameter. most JDBC drivers require that the JdbcType must be specified for all nullable parameters. cause: java. SQL. SQLException: Invalid column type; uncategorized SQLException for SQL []; SQL state [null]; error code [17004]; invalid column type; nested exception is java. SQL. SQLException: Invalid column type "faultCode =" Server. processing "faultDetail =" null "] messageId =" 406BB9C8-A70D-B31C-65E7-573E4B6DDBB4 "type =" fault "bubbles = false cancelable = true eventPhase = 2]


The updateSQL statement of the XML file is:


Set the attributes of the object class:


Cause:

When inserting a null value in MyBatis, you must specify JdbcType
If the null value of mybatis insert is returned, a null value exception is returned, but no error is prompted in pl/SQL. The main reason is that mybatis cannot be converted.


The SQL statement in the XML file is changed:


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.