When querying a CONNECT table for a MS SQL Server table. If the where clause involves a columns that is of type timestamp and the matching condition is given as a date literal ('2015-03-25') instead of a timestamp literal ('2015-03-25 00:00:00') CONNECT will return error 174.
The same query (with the date liternal) works on a InnoDB table. As well as on MariaDB version 10.0.15
Welcome to the MariaDB monitor. Commands end with ; or \g.
|
Your MariaDB connection id is 3
|
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 test
|
Database changed
|
MariaDB [test]> show create table test\G
|
*************************** 1. row ***************************
|
Table: test
|
Create Table: CREATE TABLE `test` (
|
`col1` int(10) DEFAULT NULL,
|
`col2` varchar(255) DEFAULT NULL,
|
`col3` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAM
|
P
|
) ENGINE=CONNECT DEFAULT CHARSET=latin1 CONNECTION='DSN=CCRDB01;uid=user;pwd=password' `TABLE_TYPE`='ODBC' `BLOCK_SIZE`=10
|
1 row in set (0.00 sec)
|
|
MariaDB [test]> select * from test\G
|
*************************** 1. row ***************************
|
col1: 1
|
col2: one
|
col3: 2015-01-01 00:00:00
|
*************************** 2. row ***************************
|
col1: 2
|
col2: two
|
col3: 2015-01-02 00:00:00
|
*************************** 3. row ***************************
|
col1: 3
|
col2: three
|
col3: 2015-01-03 00:00:00
|
3 rows in set (0.09 sec)
|
|
MariaDB [test]> select * from test where col1=2\G
|
*************************** 1. row ***************************
|
col1: 2
|
col2: two
|
col3: 2015-01-02 00:00:00
|
1 row in set (0.04 sec)
|
|
MariaDB [test]> select * from test where col3='2015-01-02'\G
|
ERROR 1296 (HY000): Got error 174 '[Microsoft][SQL Server Native Client 11.0][SQ
|
L Server]Executing SQL directly; no cursor.' from CONNECT
|
MariaDB [test]> select * from test where col3='2015-01-02 00:00:00'\G
|
*************************** 1. row ***************************
|
col1: 2
|
col2: two
|
col3: 2015-01-02 00:00:00
|
1 row in set (0.08 sec)
|
|
MariaDB [test]> create table foo select * from test\G
|
Query OK, 3 rows affected (0.08 sec)
|
Records: 3 Duplicates: 0 Warnings: 0
|
|
MariaDB [test]> select * from foo\G
|
*************************** 1. row ***************************
|
col1: 1
|
col2: one
|
col3: 2015-01-01 00:00:00
|
*************************** 2. row ***************************
|
col1: 2
|
col2: two
|
col3: 2015-01-02 00:00:00
|
*************************** 3. row ***************************
|
col1: 3
|
col2: three
|
col3: 2015-01-03 00:00:00
|
3 rows in set (0.00 sec)
|
|
MariaDB [test]> show create table foo\G
|
*************************** 1. row ***************************
|
Table: foo
|
Create Table: CREATE TABLE `foo` (
|
`col1` int(10) DEFAULT NULL,
|
`col2` varchar(255) DEFAULT NULL,
|
`col3` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
1 row in set (0.00 sec)
|
|
MariaDB [test]> select * from foo where col3='2015-01-02'\G
|
*************************** 1. row ***************************
|
col1: 2
|
col2: two
|
col3: 2015-01-02 00:00:00
|
1 row in set (0.00 sec)
|
|
MariaDB [test]>
|
{"report":{"fcp":1605.6999998092651,"ttfb":591.5999999046326,"pageVisibility":"visible","entityId":50630,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"689d5fab-6573-4e31-be59-2741cff8460c","navigationType":0,"readyForUser":1706.9000000953674,"redirectCount":0,"resourceLoadedEnd":2075,"resourceLoadedStart":598.5,"resourceTiming":[{"duration":200,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":598.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":598.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":798.5,"responseStart":0,"secureConnectionStart":0},{"duration":201.09999990463257,"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":598.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":598.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":799.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":268.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":599,"connectEnd":599,"connectStart":599,"domainLookupEnd":599,"domainLookupStart":599,"fetchStart":599,"redirectEnd":0,"redirectStart":0,"requestStart":599,"responseEnd":867.6999998092651,"responseStart":867.6999998092651,"secureConnectionStart":599},{"duration":628.3000001907349,"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":599.1999998092651,"connectEnd":599.1999998092651,"connectStart":599.1999998092651,"domainLookupEnd":599.1999998092651,"domainLookupStart":599.1999998092651,"fetchStart":599.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":599.1999998092651,"responseEnd":1227.5,"responseStart":1227.5,"secureConnectionStart":599.1999998092651},{"duration":632.4000000953674,"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":599.4000000953674,"connectEnd":599.4000000953674,"connectStart":599.4000000953674,"domainLookupEnd":599.4000000953674,"domainLookupStart":599.4000000953674,"fetchStart":599.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":599.4000000953674,"responseEnd":1231.8000001907349,"responseStart":1231.8000001907349,"secureConnectionStart":599.4000000953674},{"duration":633.8000001907349,"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":599.6999998092651,"connectEnd":599.6999998092651,"connectStart":599.6999998092651,"domainLookupEnd":599.6999998092651,"domainLookupStart":599.6999998092651,"fetchStart":599.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":599.6999998092651,"responseEnd":1233.5,"responseStart":1233.5,"secureConnectionStart":599.6999998092651},{"duration":637.2999997138977,"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":599.9000000953674,"connectEnd":599.9000000953674,"connectStart":599.9000000953674,"domainLookupEnd":599.9000000953674,"domainLookupStart":599.9000000953674,"fetchStart":599.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":599.9000000953674,"responseEnd":1237.1999998092651,"responseStart":1237.1999998092651,"secureConnectionStart":599.9000000953674},{"duration":639.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":600.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":600.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1239.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":637.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":600.3000001907349,"connectEnd":600.3000001907349,"connectStart":600.3000001907349,"domainLookupEnd":600.3000001907349,"domainLookupStart":600.3000001907349,"fetchStart":600.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":600.3000001907349,"responseEnd":1238.1999998092651,"responseStart":1238.0999999046326,"secureConnectionStart":600.3000001907349},{"duration":643.5999999046326,"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":600.5999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":600.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1244.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":638.6000003814697,"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":600.6999998092651,"connectEnd":600.6999998092651,"connectStart":600.6999998092651,"domainLookupEnd":600.6999998092651,"domainLookupStart":600.6999998092651,"fetchStart":600.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":600.6999998092651,"responseEnd":1239.3000001907349,"responseStart":1239.3000001907349,"secureConnectionStart":600.6999998092651},{"duration":1018.1000003814697,"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":606.6999998092651,"connectEnd":606.6999998092651,"connectStart":606.6999998092651,"domainLookupEnd":606.6999998092651,"domainLookupStart":606.6999998092651,"fetchStart":606.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":606.6999998092651,"responseEnd":1624.8000001907349,"responseStart":1624.8000001907349,"secureConnectionStart":606.6999998092651},{"duration":1455.5999999046326,"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":607.9000000953674,"connectEnd":607.9000000953674,"connectStart":607.9000000953674,"domainLookupEnd":607.9000000953674,"domainLookupStart":607.9000000953674,"fetchStart":607.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":607.9000000953674,"responseEnd":2063.5,"responseStart":2063.5,"secureConnectionStart":607.9000000953674},{"duration":403.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1027.0999999046326,"connectEnd":1027.0999999046326,"connectStart":1027.0999999046326,"domainLookupEnd":1027.0999999046326,"domainLookupStart":1027.0999999046326,"fetchStart":1027.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1027.0999999046326,"responseEnd":1431,"responseStart":1431,"secureConnectionStart":1027.0999999046326},{"duration":500.30000019073486,"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":1552,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1552,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2052.300000190735,"responseStart":0,"secureConnectionStart":0},{"duration":513.5,"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":1553.0999999046326,"connectEnd":1553.0999999046326,"connectStart":1553.0999999046326,"domainLookupEnd":1553.0999999046326,"domainLookupStart":1553.0999999046326,"fetchStart":1553.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1553.0999999046326,"responseEnd":2066.5999999046326,"responseStart":2066.5999999046326,"secureConnectionStart":1553.0999999046326},{"duration":485.80000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1597.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1597.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2082.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":521.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":1553.5,"connectEnd":1553.5,"connectStart":1553.5,"domainLookupEnd":1553.5,"domainLookupStart":1553.5,"fetchStart":1553.5,"redirectEnd":0,"redirectStart":0,"requestStart":1553.5,"responseEnd":2075,"responseStart":2075,"secureConnectionStart":1553.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":421,"responseStart":591,"responseEnd":606,"domLoading":595,"domInteractive":2085,"domContentLoadedEventStart":2085,"domContentLoadedEventEnd":2133,"domComplete":2947,"loadEventStart":2947,"loadEventEnd":2949,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2066},{"name":"bigPipe.sidebar-id.end","time":2066.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":2067.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":2069.5999999046326},{"name":"activityTabFullyLoaded","time":2144.300000190735}],"measures":[],"correlationId":"995d9118126c18","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":96,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}