diff --git a/doc/api/magic-sql.md b/doc/api/magic-sql.md index 073bb12f5..3228e2793 100644 --- a/doc/api/magic-sql.md +++ b/doc/api/magic-sql.md @@ -205,7 +205,7 @@ FROM my_data LIMIT 3 """ -%sql $QUERY +%sql {{QUERY}} ``` ## Templated SQL queries @@ -228,11 +228,11 @@ limit_two = template.substitute(limit=2) **Important:** Ensure you sanitize the input parameters; as malicious parameters will be able to run arbitrary SQL queries. ```{code-cell} ipython3 -%sql $limit_one +%sql {{limit_one}} ``` ```{code-cell} ipython3 -%sql $limit_two +%sql {{limit_two}} ``` ## Compose large queries diff --git a/setup.py b/setup.py index a65c175b9..ff5b2279c 100644 --- a/setup.py +++ b/setup.py @@ -39,7 +39,7 @@ "pkgmt", "twine", # tests - "duckdb", + "duckdb==0.7.1", "duckdb-engine", "pyodbc", # sql.plot module tests