note about LIMIT and AS in CODING_STANDARDS
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 28 Jul 2010 14:44:01 +0000 (10:44 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 28 Jul 2010 14:44:25 +0000 (10:44 -0400)
horde/docs/CODING_STANDARDS
horde/docs/CODING_STANDARDS.H3

index d4db778..39771bb 100644 (file)
@@ -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
index 4e20a7a..8928ed5 100644 (file)
@@ -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