In 10.0.20 CONNECT will return the value NULL for rows that has value of 0 from SQL Server ODBC table from column of type decimal.
This did not happen in 10.0.17
I create a table on SQL Server and populate it with one row of value 0
create table t_dec_test(col1 decimal(10, 3))
|
|
insert into t_dec_test
|
values (0)
|
Behavior in 10.0.20
Welcome to the MariaDB monitor. Commands end with ; or \g.
|
Your MariaDB connection id is 8
|
Server version: 10.0.20-MariaDB-log mariadb.org binary distribution
|
|
Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.
|
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|
MariaDB [(none)]> use util
|
Database changed
|
MariaDB [util]> create table t_dec_test
|
-> ENGINE=CONNECT CONNECTION='DSN=DEV;uid=user;pwd=password' `TABLE_TYPE`='ODBC'
|
-> \G
|
Query OK, 0 rows affected (0.09 sec)
|
|
MariaDB [util]> select * from t_dec_test\G
|
*************************** 1. row ***************************
|
col1: NULL
|
1 row in set (0.03 sec)
|
|
MariaDB [util]> show create table t_dec_test\G
|
*************************** 1. row ***************************
|
Table: t_dec_test
|
Create Table: CREATE TABLE `t_dec_test` (
|
`col1` decimal(12,3) DEFAULT NULL
|
) ENGINE=CONNECT DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci CONNECTION='DSN=DEV;uid=user;pwd=password' `TABLE_TYPE`='ODBC'
|
1 row in set (0.00 sec)
|
|
MariaDB [util]>
|
Behavior in 10.0.17
Welcome to the MariaDB monitor. Commands end with ; or \g.
|
Your MariaDB connection id is 5
|
Server version: 10.0.17-MariaDB mariadb.org binary distribution
|
|
Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.
|
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|
MariaDB [(none)]> use util;
|
Database changed
|
MariaDB [util]> create table t_dec_test
|
-> ENGINE=CONNECT CONNECTION='DSN=DEV;uid=user;pwd=password' `TABLE_TYPE`='ODBC'\G
|
Query OK, 0 rows affected (0.06 sec)
|
|
MariaDB [util]> select * from t_dec_test\G
|
*************************** 1. row ***************************
|
col1: 0.000
|
1 row in set (0.04 sec)
|
|
MariaDB [util]> show create table t_dec_test\G
|
*************************** 1. row ***************************
|
Table: t_dec_test
|
Create Table: CREATE TABLE `t_dec_test` (
|
`col1` decimal(10,3) DEFAULT NULL
|
) ENGINE=CONNECT DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci CONNECTION='DSN=DEV;uid=user;pwd=password' `TABLE_TYPE`='ODBC'
|
1 row in set (0.00 sec)
|
|
MariaDB [util]>
|
{"report":{"fcp":927.2999999821186,"ttfb":241.2999999821186,"pageVisibility":"visible","entityId":52408,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"137149cc-3803-4178-8dcc-512b5d2c57df","navigationType":0,"readyForUser":1020.6999999880791,"redirectCount":0,"resourceLoadedEnd":1147.5999999940395,"resourceLoadedStart":250,"resourceTiming":[{"duration":243,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":250,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":250,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":493,"responseStart":0,"secureConnectionStart":0},{"duration":242.90000000596046,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":250.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":250.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":493.2999999821186,"responseStart":0,"secureConnectionStart":0},{"duration":251.7999999821186,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":250.59999999403954,"connectEnd":250.59999999403954,"connectStart":250.59999999403954,"domainLookupEnd":250.59999999403954,"domainLookupStart":250.59999999403954,"fetchStart":250.59999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":250.59999999403954,"responseEnd":502.39999997615814,"responseStart":502.39999997615814,"secureConnectionStart":250.59999999403954},{"duration":276.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":251.09999999403954,"connectEnd":251.09999999403954,"connectStart":251.09999999403954,"domainLookupEnd":251.09999999403954,"domainLookupStart":251.09999999403954,"fetchStart":251.09999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":251.09999999403954,"responseEnd":527.7999999821186,"responseStart":527.7999999821186,"secureConnectionStart":251.09999999403954},{"duration":280.30000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":251.2999999821186,"connectEnd":251.2999999821186,"connectStart":251.2999999821186,"domainLookupEnd":251.2999999821186,"domainLookupStart":251.2999999821186,"fetchStart":251.2999999821186,"redirectEnd":0,"redirectStart":0,"requestStart":251.2999999821186,"responseEnd":531.5999999940395,"responseStart":531.5999999940395,"secureConnectionStart":251.2999999821186},{"duration":280.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":251.5,"connectEnd":251.5,"connectStart":251.5,"domainLookupEnd":251.5,"domainLookupStart":251.5,"fetchStart":251.5,"redirectEnd":0,"redirectStart":0,"requestStart":251.5,"responseEnd":532.1999999880791,"responseStart":532.1999999880791,"secureConnectionStart":251.5},{"duration":281,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":251.69999998807907,"connectEnd":251.69999998807907,"connectStart":251.69999998807907,"domainLookupEnd":251.69999998807907,"domainLookupStart":251.69999998807907,"fetchStart":251.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":251.69999998807907,"responseEnd":532.6999999880791,"responseStart":532.6999999880791,"secureConnectionStart":251.69999998807907},{"duration":282,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":251.7999999821186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":251.7999999821186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":533.7999999821186,"responseStart":0,"secureConnectionStart":0},{"duration":281.19999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":252,"connectEnd":252,"connectStart":252,"domainLookupEnd":252,"domainLookupStart":252,"fetchStart":252,"redirectEnd":0,"redirectStart":0,"requestStart":252,"responseEnd":533.1999999880791,"responseStart":533.1999999880791,"secureConnectionStart":252},{"duration":281.59999999403954,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":252.19999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":252.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":533.7999999821186,"responseStart":0,"secureConnectionStart":0},{"duration":281.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":252.39999997615814,"connectEnd":252.39999997615814,"connectStart":252.39999997615814,"domainLookupEnd":252.39999997615814,"domainLookupStart":252.39999997615814,"fetchStart":252.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":252.39999997615814,"responseEnd":533.8999999761581,"responseStart":533.8999999761581,"secureConnectionStart":252.39999997615814},{"duration":415.7000000178814,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":263.89999997615814,"connectEnd":263.89999997615814,"connectStart":263.89999997615814,"domainLookupEnd":263.89999997615814,"domainLookupStart":263.89999997615814,"fetchStart":263.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":263.89999997615814,"responseEnd":679.5999999940395,"responseStart":679.5999999940395,"secureConnectionStart":263.89999997615814},{"duration":883.5999999940395,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":264,"connectEnd":264,"connectStart":264,"domainLookupEnd":264,"domainLookupStart":264,"fetchStart":264,"redirectEnd":0,"redirectStart":0,"requestStart":264,"responseEnd":1147.5999999940395,"responseStart":1147.5999999940395,"secureConnectionStart":264},{"duration":423.7000000178814,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":723.2999999821186,"connectEnd":723.2999999821186,"connectStart":723.2999999821186,"domainLookupEnd":723.2999999821186,"domainLookupStart":723.2999999821186,"fetchStart":723.2999999821186,"redirectEnd":0,"redirectStart":0,"requestStart":723.2999999821186,"responseEnd":1147,"responseStart":1147,"secureConnectionStart":723.2999999821186}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":53,"responseStart":241,"responseEnd":262,"domLoading":245,"domInteractive":1170,"domContentLoadedEventStart":1170,"domContentLoadedEventEnd":1209,"domComplete":2232,"loadEventStart":2232,"loadEventEnd":2234,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1154},{"name":"bigPipe.sidebar-id.end","time":1154.7999999821186},{"name":"bigPipe.activity-panel-pipe-id.start","time":1155},{"name":"bigPipe.activity-panel-pipe-id.end","time":1157.3999999761581},{"name":"activityTabFullyLoaded","time":1216.0999999940395}],"measures":[],"correlationId":"4e7f3a73d95660","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":112,"dbReadsTimeInMs":13,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}