Closed ecrooks closed 6 years ago
The latest version I sent you corrects the error. I had to double-check what happens with the first %%sql block. My parser will take the strings that you pass to it and split them by semi colon. So in theory, the first sql statement would look like:
--sql magic at the cell level <nl> select * from syscat.tables;
I checked and luckily (not based on great programming on my part!) that it does get executed properly by Db2 since the
George,
I am using an example to show some of the differences between using SQL magic at the cell level vs. at the line level. I'm using three statements - successful statement; failing statement; successful statement; - and the behavior with the DB2 extensions and cell-level magic is not showing me the error at all, while I see the error without the db2 extensions. Here's what I see without the extensions: And here's what I see with them:
Using line-level SQL magic I get the expected results with the db2 extensions (just for reference):
For full context, the notebooks I'm using are in https://github.com/ecrooks/db2_and_jupyter_notebooks/ - I'm using "2017_IDUG_EMEA-Db2_Extensions" and "2017_IDUG_EMEA"
Is this different behavior working as expected? Is it not recommended to use SQL magic at the cell level with the Db2 extensions?
Thanks, Ember