From b7e264ef04844a45dff29cc98eade76089f06fc4 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Tue, 17 Aug 2021 11:06:44 -0400 Subject: [PATCH] 2021-08-17 Fred Gleason * Added disambiguation info regarding apostrophes vs. backticks to the 'SQL STATEMENTS' section of 'CODINGSTYLE'. Signed-off-by: Fred Gleason --- CODINGSTYLE | 3 ++- ChangeLog | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CODINGSTYLE b/CODINGSTYLE index 820eda04..7fa43848 100644 --- a/CODINGSTYLE +++ b/CODINGSTYLE @@ -179,7 +179,8 @@ SQL STATEMENTS: When embedding SQL statements in code, the following guidelines should be followed: -1) All identifier fields should be enclosed in backtick characters. +1) All identifier fields should be enclosed in backticks (ASCII 0x2C) +characters (NOT to be confused with apostrophes, see below). Good: sql="select `FIELD1`,`FIELD2` from `MY_TABLE` where `ID`=2"; diff --git a/ChangeLog b/ChangeLog index 4b3d68c9..9ad6421e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22298,3 +22298,6 @@ * Fixed a regression in rdadmin(1) the 'Rivendell Dropbox Configurations' dialog that caused corruption of dropbox settings. +2021-08-17 Fred Gleason + * Added disambiguation info regarding apostrophes vs. backticks + to the 'SQL STATEMENTS' section of 'CODINGSTYLE'.