MariaDB [test]> CREATE TABLE t_odbc350 (v BIT(1));
|
Query OK, 0 rows affected (0.045 sec)
|
|
MariaDB [test]> INSERT INTO t_odbc350 VALUES(0);
|
Query OK, 1 row affected (0.103 sec)
|
|
MariaDB [test]> SELECT v, (SELECT v FROM t_odbc350 LIMIT 1) FROM t_odbc350;
|
Field 1: `v`
|
Org_field: `v`
|
Catalog: `def`
|
Database: `test`
|
Table: `t_odbc350`
|
Org_table: `t_odbc350`
|
Type: BIT
|
Collation: binary (63)
|
Length: 1
|
Max_length: 1
|
Decimals: 0
|
Flags: UNSIGNED
|
|
Field 2: `(SELECT v FROM t_odbc350 LIMIT 1)`
|
Org_field: ``
|
Catalog: `def`
|
Database: ``
|
Table: ``
|
Org_table: ``
|
Type: BIT
|
Collation: binary (63)
|
Length: 1
|
Max_length: 1
|
Decimals: 0
|
Flags: UNSIGNED BINARY
|
|
+------+-----------------------------------+
|
| v | (SELECT v FROM t_odbc350 LIMIT 1) |
|
+------+-----------------------------------+
|
| | 0 |
|
+------+-----------------------------------+
|
1 row in set (0.000 sec)
|
The metadata suggests that the (second) field type is BIT, but the value is server returns is '0' or '1'. I tried with bit(n>1) fields - same story. There is small difference in metadata between 1st and 2nd field - binary flag. I don't know - maybe that is all intended behavior, but does not look right for me. I didn't try with 10.4, but I believe it's in all versions. In CLI output it's not really visible, that the value is '0', but I checked in debugger - these are the values coming from server. The only thing - I checked using binary protocol, but I think it's the same for text.
- relates to
-
ODBC-350
Invalid BIT column value from subselect
-
-
Closed
{"report":{"fcp":729,"ttfb":225.29999995231628,"pageVisibility":"visible","entityId":122457,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"e79efc89-1a77-46b8-87a0-a9200d8ab08b","navigationType":0,"readyForUser":785.7999999523163,"redirectCount":0,"resourceLoadedEnd":321.7000000476837,"resourceLoadedStart":231.09999990463257,"resourceTiming":[{"duration":5.200000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":231.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":231.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":236.29999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":5.300000190734863,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":231.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":231.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":236.70000004768372,"responseStart":0,"secureConnectionStart":0},{"duration":68.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":231.5,"connectEnd":231.5,"connectStart":231.5,"domainLookupEnd":231.5,"domainLookupStart":231.5,"fetchStart":231.5,"redirectEnd":0,"redirectStart":0,"requestStart":240.70000004768372,"responseEnd":300.2999999523163,"responseStart":252.89999985694885,"secureConnectionStart":231.5},{"duration":90.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":231.59999990463257,"connectEnd":231.59999990463257,"connectStart":231.59999990463257,"domainLookupEnd":231.59999990463257,"domainLookupStart":231.59999990463257,"fetchStart":231.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":241.20000004768372,"responseEnd":321.7000000476837,"responseStart":264.59999990463257,"secureConnectionStart":231.59999990463257},{"duration":23.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":231.70000004768372,"connectEnd":231.70000004768372,"connectStart":231.70000004768372,"domainLookupEnd":231.70000004768372,"domainLookupStart":231.70000004768372,"fetchStart":231.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":241.59999990463257,"responseEnd":255.20000004768372,"responseStart":254.5,"secureConnectionStart":231.70000004768372},{"duration":49.799999952316284,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":231.79999995231628,"connectEnd":231.79999995231628,"connectStart":231.79999995231628,"domainLookupEnd":231.79999995231628,"domainLookupStart":231.79999995231628,"fetchStart":231.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":242.89999985694885,"responseEnd":281.59999990463257,"responseStart":281,"secureConnectionStart":231.79999995231628},{"duration":48.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":232,"connectEnd":232,"connectStart":232,"domainLookupEnd":232,"domainLookupStart":232,"fetchStart":232,"redirectEnd":0,"redirectStart":0,"requestStart":243.89999985694885,"responseEnd":280.89999985694885,"responseStart":280.2999999523163,"secureConnectionStart":232},{"duration":11.799999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":232.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":232.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":243.89999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":55.700000047683716,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":232.09999990463257,"connectEnd":232.09999990463257,"connectStart":232.09999990463257,"domainLookupEnd":232.09999990463257,"domainLookupStart":232.09999990463257,"fetchStart":232.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":246.09999990463257,"responseEnd":287.7999999523163,"responseStart":286.7000000476837,"secureConnectionStart":232.09999990463257},{"duration":12.599999904632568,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":232.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":232.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":244.79999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":58.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":232.29999995231628,"connectEnd":232.29999995231628,"connectStart":232.29999995231628,"domainLookupEnd":232.29999995231628,"domainLookupStart":232.29999995231628,"fetchStart":232.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":246.89999985694885,"responseEnd":290.7999999523163,"responseStart":290.2000000476837,"secureConnectionStart":232.29999995231628},{"duration":18.899999856948853,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":243.70000004768372,"connectEnd":250.5,"connectStart":250.5,"domainLookupEnd":250.5,"domainLookupStart":250.5,"fetchStart":243.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":250.70000004768372,"responseEnd":262.59999990463257,"responseStart":261.59999990463257,"secureConnectionStart":250.5},{"duration":19.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":243.89999985694885,"connectEnd":243.89999985694885,"connectStart":243.89999985694885,"domainLookupEnd":243.89999985694885,"domainLookupStart":243.89999985694885,"fetchStart":243.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":251.59999990463257,"responseEnd":263.39999985694885,"responseStart":262.7999999523163,"secureConnectionStart":243.89999985694885},{"duration":207.20000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":505,"connectEnd":505,"connectStart":505,"domainLookupEnd":505,"domainLookupStart":505,"fetchStart":505,"redirectEnd":0,"redirectStart":0,"requestStart":681.7000000476837,"responseEnd":712.2000000476837,"responseStart":711.0999999046326,"secureConnectionStart":505}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":84,"responseStart":225,"responseEnd":243,"domLoading":229,"domInteractive":842,"domContentLoadedEventStart":842,"domContentLoadedEventEnd":876,"domComplete":1527,"loadEventStart":1527,"loadEventEnd":1527,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":825.7999999523163},{"name":"bigPipe.sidebar-id.end","time":826.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":826.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":827.5},{"name":"activityTabFullyLoaded","time":890.0999999046326}],"measures":[],"correlationId":"1dac3cdd85b693","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":82,"dbReadsTimeInMs":13,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Is there any specific reason why 10.4 is not there(in fix versions)? if it's because I did not check with it - I've just done it. Both 10.4.29 and 11.0.2 demonstrate the same