[GRASS-SVN] r59058 - in grass/trunk: db/drivers/mysql lib/db/sqlp

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Feb 15 14:25:24 PST 2014


Author: neteler
Date: 2014-02-15 14:25:23 -0800 (Sat, 15 Feb 2014)
New Revision: 59058

Modified:
   grass/trunk/db/drivers/mysql/grass-mesql.html
   grass/trunk/db/drivers/mysql/grass-mysql.html
   grass/trunk/lib/db/sqlp/sql.html
Log:
sql.html, MySQL manual: explain syntax error in case of using a reserved SQL word (help for trac #2184)

Modified: grass/trunk/db/drivers/mysql/grass-mesql.html
===================================================================
--- grass/trunk/db/drivers/mysql/grass-mesql.html	2014-02-15 16:51:42 UTC (rev 59057)
+++ grass/trunk/db/drivers/mysql/grass-mesql.html	2014-02-15 22:25:23 UTC (rev 59058)
@@ -57,6 +57,12 @@
 option to avoid warning about missing 
 "mysql.time_zone_leap_second table". This can be fixed in future.
 
+<h2>Troubleshooting: SQL syntax error</h2>
+
+Attempting to use a reserved SQL word as column or table name will result
+in a "SQL syntax" error. The list of reserved words for MySQL can be
+found in the <a href="http://dev.mysql.com/doc/refman/5.7/en/reserved-words.html#table-reserved-words-5.7.4">MySQL manual</a>.
+
 <h2>SEE ALSO</h2>
 
 <em>

Modified: grass/trunk/db/drivers/mysql/grass-mysql.html
===================================================================
--- grass/trunk/db/drivers/mysql/grass-mysql.html	2014-02-15 16:51:42 UTC (rev 59057)
+++ grass/trunk/db/drivers/mysql/grass-mysql.html	2014-02-15 22:25:23 UTC (rev 59058)
@@ -110,6 +110,12 @@
 by 'group' parameter of module db.connect are ignored by
 GRASS for MySQL driver.
 
+<h2>Troubleshooting: SQL syntax error</h2>
+
+Attempting to use a reserved SQL word as column or table name will result
+in a "SQL syntax" error. The list of reserved words for MySQL can be
+found in the <a href="http://dev.mysql.com/doc/refman/5.7/en/reserved-words.html#table-reserved-words-5.7.4">MySQL manual</a>.
+
 <h2>SEE ALSO</h2>
 
 <em>

Modified: grass/trunk/lib/db/sqlp/sql.html
===================================================================
--- grass/trunk/lib/db/sqlp/sql.html	2014-02-15 16:51:42 UTC (rev 59057)
+++ grass/trunk/lib/db/sqlp/sql.html	2014-02-15 22:25:23 UTC (rev 59058)
@@ -1,5 +1,7 @@
 <!-- meta page description: SQL support in GRASS GIS -->
 
+<!-- this file is lib/db/sqlp/sql.html -->
+
 GRASS can use various RDBMS
 (<a href="http://en.wikipedia.org/wiki/Relational_database_management_system">Relational
 database management system</a>) and embedded databases. SQL
@@ -49,8 +51,10 @@
 <li> An error message such as "<tt>dbmi: Protocol
      error</tt>" either indicates an invalid column name or an
      unsupported column type (then the GRASS SQL parser needs to be
-     extended).
-<li> DBF column names are limited to 10 characters (DBF API definition)
+     extended).</li>
+<li> DBF column names are limited to 10 characters (DBF API definition).</li>
+<li> Attempts to use a reserved SQL word (depends on database backend) as 
+     column or table name will cause a "SQL syntax error".</li>
 </ul>
 
 



More information about the grass-commit mailing list