COERCIBILITY() returns different results in prepared vs direct
execution in some tricky cases, e.g. conversion of a temporal
hybrid function to a non-ASCII character set:
mysql> SET NAMES utf8, collation_connection=utf16_general_ci;
|
Query OK, 0 rows affected (0.00 sec)
|
|
mysql> SELECT COERCIBILITY(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY));
|
+-----------------------------------------------------------------------+
|
| COERCIBILITY(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY)) |
|
+-----------------------------------------------------------------------+
|
| 4 |
|
+-----------------------------------------------------------------------+
|
1 row in set (3.24 sec)
|
|
mysql> PREPARE stmt FROM "SELECT COERCIBILITY(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY))";
|
Query OK, 0 rows affected (0.00 sec)
|
Statement prepared
|
|
mysql> EXECUTE stmt;
|
+-----------------------------------------------------------------------+
|
| COERCIBILITY(CONCAT(TIMESTAMP'2013-11-15 00:41:28' - INTERVAL 7 DAY)) |
|
+-----------------------------------------------------------------------+
|
| 2 |
|
+-----------------------------------------------------------------------+
|
1 row in set (0.00 sec)
|
|
This, in particular, make some tests fail in --ps mode but pass in "normal" mode:
http://buildbot.askmonty.org/buildbot/builders/bld-dan-debug/builds/985/steps/test_1/logs/stdio
Prepared execution should be fixed to return the same results with direct execution.
{"report":{"fcp":1034.5,"ttfb":269,"pageVisibility":"visible","entityId":28220,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"f4dbe321-5041-4d65-97f8-615b99739ca9","navigationType":0,"readyForUser":1121.6000003814697,"redirectCount":0,"resourceLoadedEnd":725.1000003814697,"resourceLoadedStart":277.8999996185303,"resourceTiming":[{"duration":9.100000381469727,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":277.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":277.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":287,"responseStart":0,"secureConnectionStart":0},{"duration":10.600000381469727,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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","startTime":278.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":278.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":288.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":283,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":278.30000019073486,"connectEnd":292.3999996185303,"connectStart":292.3999996185303,"domainLookupEnd":292.3999996185303,"domainLookupStart":292.3999996185303,"fetchStart":278.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":294.30000019073486,"responseEnd":561.3000001907349,"responseStart":312.3999996185303,"secureConnectionStart":292.3999996185303},{"duration":446,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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","startTime":279.1000003814697,"connectEnd":279.1000003814697,"connectStart":279.1000003814697,"domainLookupEnd":279.1000003814697,"domainLookupStart":279.1000003814697,"fetchStart":279.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":294.69999980926514,"responseEnd":725.1000003814697,"responseStart":308.30000019073486,"secureConnectionStart":279.1000003814697},{"duration":27.800000190734863,"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":279.19999980926514,"connectEnd":279.19999980926514,"connectStart":279.19999980926514,"domainLookupEnd":279.19999980926514,"domainLookupStart":279.19999980926514,"fetchStart":279.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":294.8999996185303,"responseEnd":307,"responseStart":305.5,"secureConnectionStart":279.19999980926514},{"duration":45.10000038146973,"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":279.3999996185303,"connectEnd":279.3999996185303,"connectStart":279.3999996185303,"domainLookupEnd":279.3999996185303,"domainLookupStart":279.3999996185303,"fetchStart":279.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":296.6000003814697,"responseEnd":324.5,"responseStart":318.69999980926514,"secureConnectionStart":279.3999996185303},{"duration":45.29999923706055,"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":279.6000003814697,"connectEnd":279.6000003814697,"connectStart":279.6000003814697,"domainLookupEnd":279.6000003814697,"domainLookupStart":279.6000003814697,"fetchStart":279.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":296.30000019073486,"responseEnd":324.8999996185303,"responseStart":320.30000019073486,"secureConnectionStart":279.6000003814697},{"duration":14.90000057220459,"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":279.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":279.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":294.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":48.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":279.8999996185303,"connectEnd":279.8999996185303,"connectStart":279.8999996185303,"domainLookupEnd":279.8999996185303,"domainLookupStart":279.8999996185303,"fetchStart":279.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":300.8999996185303,"responseEnd":328.19999980926514,"responseStart":325.19999980926514,"secureConnectionStart":279.8999996185303},{"duration":17.600000381469727,"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":280,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":280,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":297.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":49.19999980926514,"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":280.1000003814697,"connectEnd":280.1000003814697,"connectStart":280.1000003814697,"domainLookupEnd":280.1000003814697,"domainLookupStart":280.1000003814697,"fetchStart":280.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":302,"responseEnd":329.30000019073486,"responseStart":325.69999980926514,"secureConnectionStart":280.1000003814697},{"duration":416.3999996185303,"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":282,"connectEnd":282,"connectStart":282,"domainLookupEnd":282,"domainLookupStart":282,"fetchStart":282,"redirectEnd":0,"redirectStart":0,"requestStart":364.69999980926514,"responseEnd":698.3999996185303,"responseStart":690.3000001907349,"secureConnectionStart":282},{"duration":416.1000003814697,"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":282.3999996185303,"connectEnd":282.3999996185303,"connectStart":282.3999996185303,"domainLookupEnd":282.3999996185303,"domainLookupStart":282.3999996185303,"fetchStart":282.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":370.3999996185303,"responseEnd":698.5,"responseStart":692.5,"secureConnectionStart":282.3999996185303},{"duration":146,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":708.8999996185303,"connectEnd":708.8999996185303,"connectStart":708.8999996185303,"domainLookupEnd":708.8999996185303,"domainLookupStart":708.8999996185303,"fetchStart":708.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":819.5,"responseEnd":854.8999996185303,"responseStart":851.3000001907349,"secureConnectionStart":708.8999996185303}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":77,"responseStart":269,"responseEnd":282,"domLoading":273,"domInteractive":1256,"domContentLoadedEventStart":1256,"domContentLoadedEventEnd":1301,"domComplete":2269,"loadEventStart":2269,"loadEventEnd":2270,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1216.3000001907349},{"name":"bigPipe.sidebar-id.end","time":1217.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1217.3999996185303},{"name":"bigPipe.activity-panel-pipe-id.end","time":1219},{"name":"activityTabFullyLoaded","time":1315.6999998092651}],"measures":[],"correlationId":"87ebf62e5f7fc8","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":125,"dbReadsTimeInMs":10,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Make sure to remove "--disable_ps_protocol" in mysql-test/include/ctype_datetime.inc after fixing this bug