[GRASS-SVN] r35495 - grass/branches/develbranch_6/db/base

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 20 11:24:17 EST 2009


Author: neteler
Date: 2009-01-20 11:24:17 -0500 (Tue, 20 Jan 2009)
New Revision: 35495

Modified:
   grass/branches/develbranch_6/db/base/execute.c
Log:
Remove select test (backport)

Modified: grass/branches/develbranch_6/db/base/execute.c
===================================================================
--- grass/branches/develbranch_6/db/base/execute.c	2009-01-20 13:28:33 UTC (rev 35494)
+++ grass/branches/develbranch_6/db/base/execute.c	2009-01-20 16:24:17 UTC (rev 35495)
@@ -135,7 +135,7 @@
 
 static int get_stmt(FILE * fd, dbString * stmt)
 {
-    char buf[4000], buf2[4000], buf3[7];
+    char buf[4000], buf2[4000];
     int len, row = 0;
 
     db_init_string(stmt);
@@ -145,11 +145,6 @@
 	G_chop(buf2);
 	len = strlen(buf2);
 
-	G_strncpy(buf3, buf2, 6);
-	if (G_strcasecmp(buf3, "select") == 0)
-	    G_fatal_error(_("Use db.select for SELECT SQL statements"));
-
-	len = strlen(buf2);
 	if (buf2[len - 1] == ';') {	/* end of statement */
 	    buf2[len - 1] = 0;	/* truncate ';' */
 	    db_append_string(stmt, buf2);	/* append truncated */



More information about the grass-commit mailing list