Batch Update fails after update to 1.0.0.M5
See original GitHub issueTask List
- Steps to reproduce provided
- Stacktrace (if present) provided
- [] Example that reproduces the problem uploaded to Github Left open for now, please request if definetly needed
- Full description of the issue provided (see below)
Steps to Reproduce
- Create an Entity and a corresponding JdbcRepository
- Use the “saveAll” method of the repository to store multiple Entities
Expected Behaviour
The entities are correctly inserted into the database
Actual Behaviour
A batch exception is thrown:
Caused by: java.sql.BatchUpdateException: (conn=12223) You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘“ShipmentService” (“valueCurrency”,“valueAmount”,"valueInDefaultCurrencyCurrency’ at line 1
Additional information
With 1.0.0.M3 the query that gets generated and logged is:
INSERT INTO ShipmentService (valueCurrency,valueAmount,[.....]) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
with 1.0.0.M5 it is like this:
INSERT INTO "ShipmentService" ("valueCurrency","valueAmount",",[....]) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
(Everything is quoted now)
I also tried to set the “dialect” property of the datasource to different values but without success
Environment Information
- Operating System: Microsoft Windows 10
- Micronaut Version: 1.0.0.M5
- JDK Version: 1.8
Example Application
Left open for now, please request if definetly needed
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Failed to create new StepExecution record in DB2 ... - GitHub
Failed to create new StepExecution record in DB2 due to unsupported null value when calling JdbcTemplate.update [BATCH-360] #3219.
Read more >Cglib proxy errors using and Spring Data when moving from ...
We're moving a number of batch jobs from Spring XD M5 to the 1.0.0 release. When creating and deploying the jobs, we are...
Read more >Spring Batch Recent Changes and Upcoming m4 Release
The plan that we made last week is to release 1.0.0-m4 tomorrow (February 5), with a slightly narrower scope than planned (e.g. postponing...
Read more >Release Notes for Cisco UCS Rack Server Software, Release ...
This document describes the new features, system requirements, open caveats and known behaviors for C-Series and S-Series software release 3.0(4) including ...
Read more >IBM Security QRadar SIEM - Fix Central
M5 firmware update pack version 9.0.0 for all QRadar, QNI, PCAP, and QIF appliances (ISO/IMM). Platforms: Linux.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Unfortunately the dialect has to be specified on the annotation since the queries are computed at compilation time
Can you try specify the dialect
@JdbcRepository(dialect=Dialect.MYSQL)