From 86214ca5c923f5a09dc0aa88cf0efeac1952ac8a Mon Sep 17 00:00:00 2001 From: neelasha23 Date: Mon, 22 May 2023 19:16:16 +0530 Subject: [PATCH] duckdb version --- doc/api/magic-sql.md | 6 +++--- setup.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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