{"action":"created","issue":{"url":"https://api.github.com/repos/slick/slick/issues/1038","labels_url":"https://api.github.com/repos/slick/slick/issues/1038/labels{/name}","comments_url":"https://api.github.com/repos/slick/slick/issues/1038/comments","events_url":"https://api.github.com/repos/slick/slick/issues/1038/events","html_url":"https://github.com/slick/slick/issues/1038","id":53774299,"number":1038,"title":"Cannot access java.sql.Statement options.","user":{"login":"mweiden","id":538456,"avatar_url":"https://avatars.githubusercontent.com/u/538456?v=3","gravatar_id":"","url":"https://api.github.com/users/mweiden","html_url":"https://github.com/mweiden","followers_url":"https://api.github.com/users/mweiden/followers","following_url":"https://api.github.com/users/mweiden/following{/other_user}","gists_url":"https://api.github.com/users/mweiden/gists{/gist_id}","starred_url":"https://api.github.com/users/mweiden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mweiden/subscriptions","organizations_url":"https://api.github.com/users/mweiden/orgs","repos_url":"https://api.github.com/users/mweiden/repos","events_url":"https://api.github.com/users/mweiden/events{/privacy}","received_events_url":"https://api.github.com/users/mweiden/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/slick/slick/labels/improvement","name":"improvement","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/slick/slick/milestones/18","labels_url":"https://api.github.com/repos/slick/slick/milestones/18/labels","id":927523,"number":18,"title":"3.1.0","description":"","creator":{"login":"cvogt","id":274947,"avatar_url":"https://avatars.githubusercontent.com/u/274947?v=3","gravatar_id":"","url":"https://api.github.com/users/cvogt","html_url":"https://github.com/cvogt","followers_url":"https://api.github.com/users/cvogt/followers","following_url":"https://api.github.com/users/cvogt/following{/other_user}","gists_url":"https://api.github.com/users/cvogt/gists{/gist_id}","starred_url":"https://api.github.com/users/cvogt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvogt/subscriptions","organizations_url":"https://api.github.com/users/cvogt/orgs","repos_url":"https://api.github.com/users/cvogt/repos","events_url":"https://api.github.com/users/cvogt/events{/privacy}","received_events_url":"https://api.github.com/users/cvogt/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-01-08T18:58:38Z","updated_at":"2015-01-09T01:28:38Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-01-08T17:04:46Z","updated_at":"2015-01-15T17:59:40Z","closed_at":null,"body":"Given that objects implementing the interface `java.sql.Statement` nor methods that wrap this interface are exposed to the users of the Slick API, several parameters that affect query execution are not available.\r\n\r\nAn example of this is the Statement's `query timeout` parameter. This makes working around certain issues difficult, such as the one below:\r\n\r\nhttp://forums.mysql.com/read.php?39,599209,599223#msg-599223\r\n\r\nAs I understand it, this is currently impossible as prepared statements exist only in the scope of this function:\r\n\r\nhttps://github.com/slick/slick/blob/20273109ab984fea7c5a50170dd09985c635bd18/src/main/scala/scala/slick/jdbc/StatementInvoker.scala#L32-L76\r\n\r\nThese options could be passed into the invoker or stored in the session."},"comment":{"url":"https://api.github.com/repos/slick/slick/issues/comments/70130552","html_url":"https://github.com/slick/slick/issues/1038#issuecomment-70130552","issue_url":"https://api.github.com/repos/slick/slick/issues/1038","id":70130552,"user":{"login":"mweiden","id":538456,"avatar_url":"https://avatars.githubusercontent.com/u/538456?v=3","gravatar_id":"","url":"https://api.github.com/users/mweiden","html_url":"https://github.com/mweiden","followers_url":"https://api.github.com/users/mweiden/followers","following_url":"https://api.github.com/users/mweiden/following{/other_user}","gists_url":"https://api.github.com/users/mweiden/gists{/gist_id}","starred_url":"https://api.github.com/users/mweiden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mweiden/subscriptions","organizations_url":"https://api.github.com/users/mweiden/orgs","repos_url":"https://api.github.com/users/mweiden/repos","events_url":"https://api.github.com/users/mweiden/events{/privacy}","received_events_url":"https://api.github.com/users/mweiden/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T17:59:40Z","updated_at":"2015-01-15T17:59:40Z","body":"Does anyone have any ideas regarding this exception? I forked the repository and `preparedStatement.setQueryTimeout(0)` (unlimited timeout) prior to it's execution as described in the thread posted above ^^, but still see the following\r\n\r\n```\r\n! com.mysql.jdbc.exceptions.jdbc4.MySQLQueryInterruptedException: Query execution was interrupted\r\n!       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n!       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)\r\n!       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n!       at java.lang.reflect.Constructor.newInstance(Constructor.java:526)\r\n!       at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)\r\n!       at com.mysql.jdbc.Util.getInstance(Util.java:386)\r\n!       at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1078)\r\n!       at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)\r\n!       at com.mysql.jdbc.MysqlIO.nextRowFast(MysqlIO.java:2190)\r\n!       at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:2046)\r\n!       at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:3543)\r\n!       at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:491)\r\n!       at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:3245)\r\n!       at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:2413)\r\n!       at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2836)\r\n!       at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2834)\r\n!       at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2156)\r\n!       at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1375)\r\n!       at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)\r\n!       at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)\r\n!       at scala.slick.jdbc.StatementInvoker.results(StatementInvoker.scala:39)\r\n!       at scala.slick.jdbc.StatementInvoker.iteratorTo(StatementInvoker.scala:22)\r\n!       at scala.slick.jdbc.Invoker$class.foreach(Invoker.scala:64)\r\n!       at scala.slick.jdbc.StatementInvoker.foreach(StatementInvoker.scala:16)\r\n!       at scala.slick.jdbc.Invoker$class.firstOption(Invoker.scala:29)\r\n!       at scala.slick.jdbc.StatementInvoker.firstOption(StatementInvoker.scala:16)\r\n!       at scala.slick.jdbc.Invoker$class.first(Invoker.scala:36)\r\n!       at scala.slick.jdbc.StatementInvoker.first(StatementInvoker.scala:16)\r\n...\r\n```"}}