another strop cleanup #539
Signed-off-by: Sean Corfield <sean@corfield.org>
This commit is contained in:
parent
53a6ea0f8a
commit
acb5112f03
1 changed files with 1 additions and 1 deletions
|
|
@ -354,7 +354,7 @@ The most visible difference between dialects is how SQL entities
|
||||||
should be quoted (if the `:quoted true` option is provided to `format`).
|
should be quoted (if the `:quoted true` option is provided to `format`).
|
||||||
Most databases use `"` for quoting (the `:ansi` and `:oracle` dialects).
|
Most databases use `"` for quoting (the `:ansi` and `:oracle` dialects).
|
||||||
The `:sqlserver` dialect uses `[`..`]` and the `:mysql` dialect uses
|
The `:sqlserver` dialect uses `[`..`]` and the `:mysql` dialect uses
|
||||||
```` .. ````. In addition, the `:oracle` dialect disables `AS` in aliases.
|
`\`` .. `\``. In addition, the `:oracle` dialect disables `AS` in aliases.
|
||||||
|
|
||||||
> Note: by default, quoting is **off** which produces cleaner-looking SQL and assumes you control all the symbols/keywords used as table, column, and function names -- the "SQL entities". If you are building any SQL or DDL where the table, column, or function names could be provided by an external source, **you should specify `:quoted true` to ensure all SQL entities are safely quoted**. As of 2.3.928, if you do _not_ specify `:quoted` as an option, HoneySQL will automatically quote any SQL entities that seem unusual, i.e., that contain any characters that are not alphanumeric or underscore. Purely alphanumeric entities will not be quoted (no entities were quoted by default prior to 2.3.928). You can prevent that auto-quoting by explicitly passing `:quoted false` into the `format` call but, from a security point of view, you should think very carefully before you do that: quoting entity names helps protect you from injection attacks! As of 2.4.947, you can change the default setting of `:quoted` from `nil` to `true` (or `false`) via the `set-options!` function.
|
> Note: by default, quoting is **off** which produces cleaner-looking SQL and assumes you control all the symbols/keywords used as table, column, and function names -- the "SQL entities". If you are building any SQL or DDL where the table, column, or function names could be provided by an external source, **you should specify `:quoted true` to ensure all SQL entities are safely quoted**. As of 2.3.928, if you do _not_ specify `:quoted` as an option, HoneySQL will automatically quote any SQL entities that seem unusual, i.e., that contain any characters that are not alphanumeric or underscore. Purely alphanumeric entities will not be quoted (no entities were quoted by default prior to 2.3.928). You can prevent that auto-quoting by explicitly passing `:quoted false` into the `format` call but, from a security point of view, you should think very carefully before you do that: quoting entity names helps protect you from injection attacks! As of 2.4.947, you can change the default setting of `:quoted` from `nil` to `true` (or `false`) via the `set-options!` function.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue