From e8196e266d9e81482ded6c0c7eafd54dd0f95e91 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Tue, 15 Dec 2020 10:16:38 -0800 Subject: [PATCH] Add caveat about strings in parameterizer none --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3e819dd..649430a 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,8 @@ If you want to format the query as a string with no parameters (e.g. to use the => ["SELECT a, b, c FROM foo WHERE f.a = baz"] ``` +Note that HoneySQL 1.0 does not correctly turn string parameters into inline SQL strings -- it will only work with numbers (and Booleans). HoneySQL 2.0 will do this correctly (via the new `:inline` option to `sql/format` + ### `build` You can build up SQL maps yourself or use helper functions. `build` is the Swiss Army Knife helper. It lets you leave out brackets here and there: