Using MariaDB Java Client version 3.0.4 (and latest Spring Data JPA/Hibernate), we get following exception:
java.sql.SQLSyntaxErrorException: (conn=8) 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 'RENAME TABLE x_partial TO x' at line 1
|
at org.mariadb.jdbc.export.ExceptionFactory.createException(ExceptionFactory.java:270)
|
at org.mariadb.jdbc.export.ExceptionFactory.create(ExceptionFactory.java:358)
|
at org.mariadb.jdbc.message.ClientMessage.readPacket(ClientMessage.java:133)
|
at org.mariadb.jdbc.client.impl.StandardClient.readPacket(StandardClient.java:815)
|
at org.mariadb.jdbc.client.impl.StandardClient.readResults(StandardClient.java:754)
|
at org.mariadb.jdbc.client.impl.StandardClient.readResponse(StandardClient.java:673)
|
at org.mariadb.jdbc.client.impl.StandardClient.execute(StandardClient.java:616)
|
at org.mariadb.jdbc.Statement.executeInternal(Statement.java:906)
|
at org.mariadb.jdbc.Statement.execute(Statement.java:1031)
|
at org.mariadb.jdbc.Statement.execute(Statement.java:441)
|
at com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:94)
|
at com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java)
|
at org.springframework.jdbc.core.JdbcTemplate$1ExecuteStatementCallback.doInStatement(JdbcTemplate.java:422)
|
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:381)
|
Was working with MariaDB Java Client 2.7.5 (and all older 2.x versions).
{"report":{"fcp":1204.0999999046326,"ttfb":485.3999996185303,"pageVisibility":"visible","entityId":109815,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"6057dfa7-f2fc-4417-a404-8999fa3ef490","navigationType":0,"readyForUser":1275.0999999046326,"redirectCount":0,"resourceLoadedEnd":1443.5,"resourceLoadedStart":490.59999990463257,"resourceTiming":[{"duration":180.7999997138977,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":490.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":490.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":671.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":181.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":490.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":490.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":672.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":239.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":491.09999990463257,"connectEnd":491.09999990463257,"connectStart":491.09999990463257,"domainLookupEnd":491.09999990463257,"domainLookupStart":491.09999990463257,"fetchStart":491.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":491.09999990463257,"responseEnd":730.7999997138977,"responseStart":730.7999997138977,"secureConnectionStart":491.09999990463257},{"duration":315.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":491.19999980926514,"connectEnd":491.19999980926514,"connectStart":491.19999980926514,"domainLookupEnd":491.19999980926514,"domainLookupStart":491.19999980926514,"fetchStart":491.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":491.19999980926514,"responseEnd":807.0999999046326,"responseStart":807.0999999046326,"secureConnectionStart":491.19999980926514},{"duration":319.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":491.5,"connectEnd":491.5,"connectStart":491.5,"domainLookupEnd":491.5,"domainLookupStart":491.5,"fetchStart":491.5,"redirectEnd":0,"redirectStart":0,"requestStart":491.5,"responseEnd":811.3999996185303,"responseStart":811.3999996185303,"secureConnectionStart":491.5},{"duration":320.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":491.69999980926514,"connectEnd":491.69999980926514,"connectStart":491.69999980926514,"domainLookupEnd":491.69999980926514,"domainLookupStart":491.69999980926514,"fetchStart":491.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":491.69999980926514,"responseEnd":811.8999996185303,"responseStart":811.8999996185303,"secureConnectionStart":491.69999980926514},{"duration":320.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":491.8999996185303,"connectEnd":491.8999996185303,"connectStart":491.8999996185303,"domainLookupEnd":491.8999996185303,"domainLookupStart":491.8999996185303,"fetchStart":491.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":491.8999996185303,"responseEnd":812.2999997138977,"responseStart":812.2999997138977,"secureConnectionStart":491.8999996185303},{"duration":383.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":492.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":492.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":875.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":320.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":492.2999997138977,"connectEnd":492.2999997138977,"connectStart":492.2999997138977,"domainLookupEnd":492.2999997138977,"domainLookupStart":492.2999997138977,"fetchStart":492.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":492.2999997138977,"responseEnd":812.7999997138977,"responseStart":812.7999997138977,"secureConnectionStart":492.2999997138977},{"duration":383,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":492.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":492.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":875.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":320.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":492.5,"connectEnd":492.5,"connectStart":492.5,"domainLookupEnd":492.5,"domainLookupStart":492.5,"fetchStart":492.5,"redirectEnd":0,"redirectStart":0,"requestStart":492.5,"responseEnd":813.3999996185303,"responseStart":813.3999996185303,"secureConnectionStart":492.5},{"duration":798.1999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":498.09999990463257,"connectEnd":498.09999990463257,"connectStart":498.09999990463257,"domainLookupEnd":498.09999990463257,"domainLookupStart":498.09999990463257,"fetchStart":498.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":498.09999990463257,"responseEnd":1296.2999997138977,"responseStart":1296.2999997138977,"secureConnectionStart":498.09999990463257},{"duration":883.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":498.2999997138977,"connectEnd":498.2999997138977,"connectStart":498.2999997138977,"domainLookupEnd":498.2999997138977,"domainLookupStart":498.2999997138977,"fetchStart":498.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":498.2999997138977,"responseEnd":1382.0999999046326,"responseStart":1382.0999999046326,"secureConnectionStart":498.2999997138977},{"duration":409.2000002861023,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":887.3999996185303,"connectEnd":887.3999996185303,"connectStart":887.3999996185303,"domainLookupEnd":887.3999996185303,"domainLookupStart":887.3999996185303,"fetchStart":887.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":887.3999996185303,"responseEnd":1296.5999999046326,"responseStart":1296.5999999046326,"secureConnectionStart":887.3999996185303},{"duration":187.90000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1196.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1196.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1384.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":130.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1312.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1312.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1443.5,"responseStart":0,"secureConnectionStart":0},{"duration":106,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1313.5999999046326,"connectEnd":1313.5999999046326,"connectStart":1313.5999999046326,"domainLookupEnd":1313.5999999046326,"domainLookupStart":1313.5999999046326,"fetchStart":1313.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1313.5999999046326,"responseEnd":1419.5999999046326,"responseStart":1419.5999999046326,"secureConnectionStart":1313.5999999046326},{"duration":111.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1314.1999998092651,"connectEnd":1314.1999998092651,"connectStart":1314.1999998092651,"domainLookupEnd":1314.1999998092651,"domainLookupStart":1314.1999998092651,"fetchStart":1314.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1314.1999998092651,"responseEnd":1425.5,"responseStart":1425.5,"secureConnectionStart":1314.1999998092651}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":319,"responseStart":485,"responseEnd":495,"domLoading":488,"domInteractive":1474,"domContentLoadedEventStart":1474,"domContentLoadedEventEnd":1519,"domComplete":2146,"loadEventStart":2146,"loadEventEnd":2147,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1447.2999997138977},{"name":"bigPipe.sidebar-id.end","time":1448.2999997138977},{"name":"bigPipe.activity-panel-pipe-id.start","time":1448.3999996185303},{"name":"bigPipe.activity-panel-pipe-id.end","time":1450.5999999046326},{"name":"activityTabFullyLoaded","time":1543.7999997138977}],"measures":[],"correlationId":"956c5c407eb09f","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":105,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
This error 'RENAME TABLE x_partial TO x' error is just a message returned from server, it doesn't help much to identify the issue.
Since it this was working with 2.7.5, either hibernate doesn't send the same kind of query, either server has changed too.
If you can reproduced the issue, can you set "TRACE" logging level to "org.mariadb.jdbc" logger ? this would permit to log exchanges with server to have a more detailed view of the problem.