{"action":"created","issue":{"url":"https://api.github.com/repos/teiid-marketplace/translator-adabas/issues/2","labels_url":"https://api.github.com/repos/teiid-marketplace/translator-adabas/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/teiid-marketplace/translator-adabas/issues/2/comments","events_url":"https://api.github.com/repos/teiid-marketplace/translator-adabas/issues/2/events","html_url":"https://github.com/teiid-marketplace/translator-adabas/pull/2","id":65578171,"number":2,"title":"Workaround for unsupported methods in CONNX JDBC Driver","user":{"login":"ataxexe","id":638065,"avatar_url":"https://avatars.githubusercontent.com/u/638065?v=3","gravatar_id":"","url":"https://api.github.com/users/ataxexe","html_url":"https://github.com/ataxexe","followers_url":"https://api.github.com/users/ataxexe/followers","following_url":"https://api.github.com/users/ataxexe/following{/other_user}","gists_url":"https://api.github.com/users/ataxexe/gists{/gist_id}","starred_url":"https://api.github.com/users/ataxexe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ataxexe/subscriptions","organizations_url":"https://api.github.com/users/ataxexe/orgs","repos_url":"https://api.github.com/users/ataxexe/repos","events_url":"https://api.github.com/users/ataxexe/events{/privacy}","received_events_url":"https://api.github.com/users/ataxexe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-01T00:59:06Z","updated_at":"2015-04-01T13:54:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/teiid-marketplace/translator-adabas/pulls/2","html_url":"https://github.com/teiid-marketplace/translator-adabas/pull/2","diff_url":"https://github.com/teiid-marketplace/translator-adabas/pull/2.diff","patch_url":"https://github.com/teiid-marketplace/translator-adabas/pull/2.patch"},"body":"This is a simple workaround for **get(`Date`|`Time`|`Timestamp`)** methods that receives a `Calendar`. CONNX JDBC Driver does not support this methods (it throws exceptions when called).\r\n\r\nI've used a delegate to wrap the `ResulSet` and `CallableStatement` and modify the unsupported methods with a simple implementation. Currently, the workaround only discards the `Calendar` parameter and delegates to the *non-calendar* versions (need to improve this later).\r\n\r\nThere are also other unsupported methods, but since they are all the setters, a workaround is not viable to do right now."},"comment":{"url":"https://api.github.com/repos/teiid-marketplace/translator-adabas/issues/comments/88488527","html_url":"https://github.com/teiid-marketplace/translator-adabas/pull/2#issuecomment-88488527","issue_url":"https://api.github.com/repos/teiid-marketplace/translator-adabas/issues/2","id":88488527,"user":{"login":"rareddy","id":1268481,"avatar_url":"https://avatars.githubusercontent.com/u/1268481?v=3","gravatar_id":"","url":"https://api.github.com/users/rareddy","html_url":"https://github.com/rareddy","followers_url":"https://api.github.com/users/rareddy/followers","following_url":"https://api.github.com/users/rareddy/following{/other_user}","gists_url":"https://api.github.com/users/rareddy/gists{/gist_id}","starred_url":"https://api.github.com/users/rareddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rareddy/subscriptions","organizations_url":"https://api.github.com/users/rareddy/orgs","repos_url":"https://api.github.com/users/rareddy/repos","events_url":"https://api.github.com/users/rareddy/events{/privacy}","received_events_url":"https://api.github.com/users/rareddy/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T13:54:48Z","updated_at":"2015-04-01T13:54:48Z","body":"Generally that is not correct. The reason for Calender object is there to correct/adjust the Abadas server time to Teiid Server time, so that the times are consistent. Unless, the times from Abadas are already in GMT, then we need to convert them to Teiid Server time.\r\n\r\nit should be like\r\n*******************************************************************************\r\nTime value = getTime(columnIndex);\r\nif (value != null && cal != null) {\r\n\tvalue = TimestampWithTimezone.createTime(value,\r\n\tCalendar.getInstance().getTimeZone(), cal);\r\n}\r\nreturn value;\r\n********************************************************************************\r\nCan you please like above, and resubmit?"}}