From: Michael J. Rubinsky Date: Wed, 28 Jul 2010 14:44:01 +0000 (-0400) Subject: note about LIMIT and AS in CODING_STANDARDS X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fe46f441ba288126f0d8d62c85871cee666bfa98;p=horde.git note about LIMIT and AS in CODING_STANDARDS --- diff --git a/horde/docs/CODING_STANDARDS b/horde/docs/CODING_STANDARDS index d4db778ba..39771bb91 100644 --- a/horde/docs/CODING_STANDARDS +++ b/horde/docs/CODING_STANDARDS @@ -419,6 +419,10 @@ http://home.fnal.gov/~dbox/SQL_API_Portability.html and http://articles.techrepublic.com.com/5100-10878_11-1045051.html for more information. +Other portability guidlines: Always use the database abstraction layer's +capabilities for result set pagination ('LIMIT' is not portable). Also, do not +use the 'AS' keyword for table aliases. + In SQL queries, keywords should be capitalized. In table creation statements, SQL keywords and datatypes should be diff --git a/horde/docs/CODING_STANDARDS.H3 b/horde/docs/CODING_STANDARDS.H3 index 4e20a7a09..8928ed51f 100644 --- a/horde/docs/CODING_STANDARDS.H3 +++ b/horde/docs/CODING_STANDARDS.H3 @@ -446,6 +446,10 @@ NUMERIC(p,s), VARCHAR(n), CHAR(n), FLOAT, and REAL. See http://home.fnal.gov/~dbox/SQL_API_Portability.html and http://builder.com.com/5100-6388-1045051.html for more information. +Other portability guidlines: Always use the database abstraction layer's +capabilities for result set pagination ('LIMIT' is not portable). Also, do not +use the 'AS' keyword for table aliases. + In SQL queries, keywords should be capitalized. In table creation statements, SQL keywords and datatypes should be