When select values on a view with decimal column/s from a Connect table, MariaDB returns error or value filled with 0,00...
How to reproduce:
CREATE TABLE test_table (
|
`dec_column` decimal(22,8) DEFAULT NULL
|
) ENGINE=CONNECT DEFAULT CHARSET=latin1 CONNECTION='Driver=ODBC Driver 17 for SQL Server;Server=192.168.*.*,1434;Database=DBNAME;UID=sa;PWD=password;connect timeout=3600' `TABLE_TYPE`='ODBC' `TABNAME`='original_table';
|
|
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `test_view` AS select sql_cache `test_table`.`dec_column` AS `dec_column` from `test_table` ;
|
|
SELECT * FROM test_view;
|
Result:
|
0.00000000
|
0.00000000
|
0.00000000
|
0.00000000
|
.......
|
MariaDB 10.4.21 works without problems.
No workflow transitions have been executed yet.
{"report":{"fcp":913.8999996185303,"ttfb":158.19999980926514,"pageVisibility":"visible","entityId":106731,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":1,"journeyId":"244b5c8a-f678-4c53-a7cf-34ffa13c7926","navigationType":0,"readyForUser":998.8999996185303,"redirectCount":0,"resourceLoadedEnd":959,"resourceLoadedStart":163.79999923706055,"resourceTiming":[{"duration":16.300000190734863,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":163.79999923706055,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":163.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":180.0999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":16.5,"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":164.0999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":164.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":180.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":95.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":164.29999923706055,"connectEnd":164.29999923706055,"connectStart":164.29999923706055,"domainLookupEnd":164.29999923706055,"domainLookupStart":164.29999923706055,"fetchStart":164.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":164.29999923706055,"responseEnd":259.79999923706055,"responseStart":259.79999923706055,"secureConnectionStart":164.29999923706055},{"duration":169.69999980926514,"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":164.5,"connectEnd":164.5,"connectStart":164.5,"domainLookupEnd":164.5,"domainLookupStart":164.5,"fetchStart":164.5,"redirectEnd":0,"redirectStart":0,"requestStart":164.5,"responseEnd":334.19999980926514,"responseStart":334.19999980926514,"secureConnectionStart":164.5},{"duration":182.5,"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":164.69999980926514,"connectEnd":164.69999980926514,"connectStart":164.69999980926514,"domainLookupEnd":164.69999980926514,"domainLookupStart":164.69999980926514,"fetchStart":164.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":164.69999980926514,"responseEnd":347.19999980926514,"responseStart":347.19999980926514,"secureConnectionStart":164.69999980926514},{"duration":182.89999961853027,"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":164.89999961853027,"connectEnd":164.89999961853027,"connectStart":164.89999961853027,"domainLookupEnd":164.89999961853027,"domainLookupStart":164.89999961853027,"fetchStart":164.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":164.89999961853027,"responseEnd":347.79999923706055,"responseStart":347.79999923706055,"secureConnectionStart":164.89999961853027},{"duration":183,"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":165.19999980926514,"connectEnd":165.19999980926514,"connectStart":165.19999980926514,"domainLookupEnd":165.19999980926514,"domainLookupStart":165.19999980926514,"fetchStart":165.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":165.19999980926514,"responseEnd":348.19999980926514,"responseStart":348.19999980926514,"secureConnectionStart":165.19999980926514},{"duration":276.5,"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":165.29999923706055,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":165.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":441.79999923706055,"responseStart":0,"secureConnectionStart":0},{"duration":183.29999923706055,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":165.5,"connectEnd":165.5,"connectStart":165.5,"domainLookupEnd":165.5,"domainLookupStart":165.5,"fetchStart":165.5,"redirectEnd":0,"redirectStart":0,"requestStart":165.5,"responseEnd":348.79999923706055,"responseStart":348.79999923706055,"secureConnectionStart":165.5},{"duration":276.5,"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":165.5999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":165.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":442.0999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":183.70000076293945,"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":165.79999923706055,"connectEnd":165.79999923706055,"connectStart":165.79999923706055,"domainLookupEnd":165.79999923706055,"domainLookupStart":165.79999923706055,"fetchStart":165.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":165.79999923706055,"responseEnd":349.5,"responseStart":349.5,"secureConnectionStart":165.79999923706055},{"duration":358,"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":166.69999980926514,"connectEnd":166.69999980926514,"connectStart":166.69999980926514,"domainLookupEnd":166.69999980926514,"domainLookupStart":166.69999980926514,"fetchStart":166.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":166.69999980926514,"responseEnd":524.6999998092651,"responseStart":524.6999998092651,"secureConnectionStart":166.69999980926514},{"duration":654.3000001907349,"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":166.79999923706055,"connectEnd":166.79999923706055,"connectStart":166.79999923706055,"domainLookupEnd":166.79999923706055,"domainLookupStart":166.79999923706055,"fetchStart":166.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":166.79999923706055,"responseEnd":821.0999994277954,"responseStart":821.0999994277954,"secureConnectionStart":166.79999923706055},{"duration":62,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":465.19999980926514,"connectEnd":465.19999980926514,"connectStart":465.19999980926514,"domainLookupEnd":465.19999980926514,"domainLookupStart":465.19999980926514,"fetchStart":465.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":465.19999980926514,"responseEnd":527.1999998092651,"responseStart":527.1999998092651,"secureConnectionStart":465.19999980926514},{"duration":36.60000038146973,"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":818.2999992370605,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":818.2999992370605,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":854.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":133,"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":820.0999994277954,"connectEnd":820.0999994277954,"connectStart":820.0999994277954,"domainLookupEnd":820.0999994277954,"domainLookupStart":820.0999994277954,"fetchStart":820.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":820.0999994277954,"responseEnd":953.0999994277954,"responseStart":953.0999994277954,"secureConnectionStart":820.0999994277954},{"duration":138.5,"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":820.5,"connectEnd":820.5,"connectStart":820.5,"domainLookupEnd":820.5,"domainLookupStart":820.5,"fetchStart":820.5,"redirectEnd":0,"redirectStart":0,"requestStart":820.5,"responseEnd":959,"responseStart":959,"secureConnectionStart":820.5},{"duration":155.0999994277954,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":906.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":906.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1061.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":206.69999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":935.3999996185303,"connectEnd":935.3999996185303,"connectStart":935.3999996185303,"domainLookupEnd":935.3999996185303,"domainLookupStart":935.3999996185303,"fetchStart":935.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":935.3999996185303,"responseEnd":1142.0999994277954,"responseStart":1142.0999994277954,"secureConnectionStart":935.3999996185303}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":15,"responseStart":159,"responseEnd":160,"domLoading":162,"domInteractive":1103,"domContentLoadedEventStart":1103,"domContentLoadedEventEnd":1149,"domComplete":1320,"loadEventStart":1320,"loadEventEnd":1321,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1063.5},{"name":"bigPipe.sidebar-id.end","time":1064.2999992370605},{"name":"bigPipe.activity-panel-pipe-id.start","time":1064.3999996185303},{"name":"bigPipe.activity-panel-pipe-id.end","time":1064.8999996185303},{"name":"activityTabFullyLoaded","time":1159.1999998092651}],"measures":[],"correlationId":"a4ef0a1d555a18","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":87,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}