Quantcast
Channel: Toad Extension for Eclipse
Viewing all articles
Browse latest Browse all 978

Forum Post: Java Integration does not see SQL queries inside Java 8 lambdas

$
0
0
I recently started using the Toad Extension for Eclipse, and also use lambdas and other Java 8 features extensively. The SQL parser doesn't seem to find SQL queries inside lambdas. For example, in the following code, the SQL query is detected and highlighted: try (Connection c = ds.getConnection(); Statement s = c.createStatement();) { s.executeQuery("SELECT 1;"); } ...but it is not found and remains unhighlighted in: pool.execute(() -> { try (Connection c = ds.getConnection(); Statement s = c.createStatement();) { s.executeQuery("SELECT 1;"); } }); Virtually all of my SQL-based code uses lambdas to easily submit work to an executor for asynchronous queries, so this completely breaks the extension for me. Is there a workaround or some beta version that does support lambdas?

Viewing all articles
Browse latest Browse all 978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>