From 012645aa9e2d480882ddedfc12c42beaf419cfe8 Mon Sep 17 00:00:00 2001 From: Johaine <32821455+Johaine@users.noreply.github.com> Date: Sat, 25 Feb 2023 22:48:11 +0100 Subject: 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 --- docs/sql-standards.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/sql-standards.md') 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. -- cgit