Add caveat about strings in parameterizer none
This commit is contained in:
parent
7c5ec5c953
commit
e8196e266d
1 changed files with 2 additions and 0 deletions
|
|
@ -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"]
|
=> ["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`
|
### `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:
|
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:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue