In the following description it is not possible to write two backslashes after each other. That's why I wrote '\ \' with space between in meaning two following backslashes without space.
Commit https://github.com/MariaDB/mariadb-connector-j/commit/e9e8acc400d5935082b9d4d5255d5e735eae7a8f
causes problems if SELECT or WHERE contains backspace(s) without following ' or "
Simple Select doesn't work any more without ...?sessionVariables=sql_mode=NO_BACKSLASH_ESCAPES
getSession().createSQLQuery("SELECT CONCAT('\\\\', '') FROM (SELECT '') AS a WHERE :q = 1").setParameter("q", 1).list();
Caused by: java.sql.SQLException: Could not set parameter at position 1 (values was 1)
Query - conn:1180011(M) - "SELECT CONCAT('\ \', '') FROM (SELECT '') AS a WHERE ? = 1"
at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.getSqlException(ExceptionMapper.java:211)
at org.mariadb.jdbc.MariaDbPreparedStatementClient.setParameter(MariaDbPreparedStatementClient.java:438)
at org.mariadb.jdbc.BasePrepareStatement.setInt(BasePrepareStatement.java:1436)
...
Diego Dupin
made changes -
2018-12-07 12:18
Fix Version/s
2.3.1
[ 23245
]
Diego Dupin
made changes -
2018-12-07 12:18
Status
Open
[ 1
]
Confirmed
[ 10101
]
Diego Dupin
made changes -
2018-12-14 14:28
issue.field.resolutiondate
2018-12-14 14:28:07.0
2018-12-14 14:28:07.087
Diego Dupin
made changes -
2018-12-14 14:28
Component/s
protocol
[ 14418
]
Resolution
Fixed
[ 1
]
Status
Confirmed
[ 10101
]
Closed
[ 6
]
Diego Dupin
made changes -
2019-01-31 16:36
Fix Version/s
2.4.0
[ 23154
]
Fix Version/s
2.3.1
[ 23245
]
Sergei Golubchik
made changes -
2021-12-06 21:27
Workflow
MariaDB v3
[ 91035
]
MariaDB v4
[ 135089
]
{"report":{"fcp":1066,"ttfb":366.40000009536743,"pageVisibility":"visible","entityId":71213,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"9c3c177e-fa50-4939-8b7d-f94665e6beaf","navigationType":0,"readyForUser":1141.1000001430511,"redirectCount":0,"resourceLoadedEnd":1152.3000001907349,"resourceLoadedStart":373,"resourceTiming":[{"duration":105.70000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":373,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":373,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":478.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":106.29999995231628,"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":373.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":373.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":479.5,"responseStart":0,"secureConnectionStart":0},{"duration":164.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":373.40000009536743,"connectEnd":373.40000009536743,"connectStart":373.40000009536743,"domainLookupEnd":373.40000009536743,"domainLookupStart":373.40000009536743,"fetchStart":373.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":373.40000009536743,"responseEnd":538,"responseStart":538,"secureConnectionStart":373.40000009536743},{"duration":274.2999999523163,"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":373.60000014305115,"connectEnd":373.60000014305115,"connectStart":373.60000014305115,"domainLookupEnd":373.60000014305115,"domainLookupStart":373.60000014305115,"fetchStart":373.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":373.60000014305115,"responseEnd":647.9000000953674,"responseStart":647.9000000953674,"secureConnectionStart":373.60000014305115},{"duration":278.69999980926514,"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":373.80000019073486,"connectEnd":373.80000019073486,"connectStart":373.80000019073486,"domainLookupEnd":373.80000019073486,"domainLookupStart":373.80000019073486,"fetchStart":373.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":373.80000019073486,"responseEnd":652.5,"responseStart":652.5,"secureConnectionStart":373.80000019073486},{"duration":279,"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":374,"connectEnd":374,"connectStart":374,"domainLookupEnd":374,"domainLookupStart":374,"fetchStart":374,"redirectEnd":0,"redirectStart":0,"requestStart":374,"responseEnd":653,"responseStart":653,"secureConnectionStart":374},{"duration":279.2000000476837,"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":374.2000000476837,"connectEnd":374.2000000476837,"connectStart":374.2000000476837,"domainLookupEnd":374.2000000476837,"domainLookupStart":374.2000000476837,"fetchStart":374.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":374.2000000476837,"responseEnd":653.4000000953674,"responseStart":653.4000000953674,"secureConnectionStart":374.2000000476837},{"duration":312.39999985694885,"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":374.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":374.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":686.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":279.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":374.5,"connectEnd":374.5,"connectStart":374.5,"domainLookupEnd":374.5,"domainLookupStart":374.5,"fetchStart":374.5,"redirectEnd":0,"redirectStart":0,"requestStart":374.5,"responseEnd":653.9000000953674,"responseStart":653.9000000953674,"secureConnectionStart":374.5},{"duration":312.10000014305115,"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":374.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":374.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":686.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":279.7999999523163,"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":374.90000009536743,"connectEnd":374.90000009536743,"connectStart":374.90000009536743,"domainLookupEnd":374.90000009536743,"domainLookupStart":374.90000009536743,"fetchStart":374.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":374.90000009536743,"responseEnd":654.7000000476837,"responseStart":654.7000000476837,"secureConnectionStart":374.90000009536743},{"duration":507.30000019073486,"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":376,"connectEnd":376,"connectStart":376,"domainLookupEnd":376,"domainLookupStart":376,"fetchStart":376,"redirectEnd":0,"redirectStart":0,"requestStart":376,"responseEnd":883.3000001907349,"responseStart":883.3000001907349,"secureConnectionStart":376},{"duration":675.5,"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":376.10000014305115,"connectEnd":376.10000014305115,"connectStart":376.10000014305115,"domainLookupEnd":376.10000014305115,"domainLookupStart":376.10000014305115,"fetchStart":376.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":376.10000014305115,"responseEnd":1051.6000001430511,"responseStart":1051.6000001430511,"secureConnectionStart":376.10000014305115},{"duration":186.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":698.9000000953674,"connectEnd":698.9000000953674,"connectStart":698.9000000953674,"domainLookupEnd":698.9000000953674,"domainLookupStart":698.9000000953674,"fetchStart":698.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":698.9000000953674,"responseEnd":885.4000000953674,"responseStart":885.4000000953674,"secureConnectionStart":698.9000000953674},{"duration":186,"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":966.3000001907349,"connectEnd":966.3000001907349,"connectStart":966.3000001907349,"domainLookupEnd":966.3000001907349,"domainLookupStart":966.3000001907349,"fetchStart":966.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":966.3000001907349,"responseEnd":1152.3000001907349,"responseStart":1152.3000001907349,"secureConnectionStart":966.3000001907349},{"duration":212,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1059.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1059.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1271.4000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":171,"responseStart":367,"responseEnd":369,"domLoading":370,"domInteractive":1213,"domContentLoadedEventStart":1213,"domContentLoadedEventEnd":1271,"domComplete":1450,"loadEventStart":1450,"loadEventEnd":1450,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1177.4000000953674},{"name":"bigPipe.sidebar-id.end","time":1178.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1178.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1181.4000000953674},{"name":"activityTabFullyLoaded","time":1290.7000000476837}],"measures":[],"correlationId":"49c541fb6571aa","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":136,"dbReadsTimeInMs":29,"dbConnsTimeInMs":40,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}