question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Batch Update fails after update to 1.0.0.M5

See original GitHub issue

Task 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

  1. Create an Entity and a corresponding JdbcRepository
  2. 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:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
graemerochercommented, Dec 13, 2019

Unfortunately the dialect has to be specified on the annotation since the queries are computed at compilation time

1reaction
graemerochercommented, Dec 13, 2019

Can you try specify the dialect @JdbcRepository(dialect=Dialect.MYSQL)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found