diff options
| author | Johaine <32821455+Johaine@users.noreply.github.com> | 2023-02-25 22:48:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-25 22:48:11 +0100 |
| commit | 012645aa9e2d480882ddedfc12c42beaf419cfe8 (patch) | |
| tree | c5013bf75e7ce02244768e68b266613727d2d8c2 | |
| parent | 5fad0027400b66e72010567098cae4d011eda9c0 (diff) | |
| download | wiki-012645aa9e2d480882ddedfc12c42beaf419cfe8.tar.gz wiki-012645aa9e2d480882ddedfc12c42beaf419cfe8.tar.bz2 wiki-012645aa9e2d480882ddedfc12c42beaf419cfe8.zip | |
Explicitly exclude database name in queries (#875)
Was noted in https://github.com/azerothcore/azerothcore-wotlk/pull/15201
Some people might not use the standard database names
| -rw-r--r-- | docs/sql-standards.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/sql-standards.md b/docs/sql-standards.md index 23823c5..388a17e 100644 --- a/docs/sql-standards.md +++ b/docs/sql-standards.md @@ -13,6 +13,8 @@ We always use backticks \` around table- and column names. \`creature_loot_templ We always use single quotes around string values ' ' but NEVER around an integer. +We never include the database name in queries. + ### INSERT & DELETE We always DELETE before an INSERT to ensure we always put fields in the query and that no errors occur. |
