[GRASS-SVN] r35479 - grass/branches/releasebranch_6_4/db/base
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jan 18 01:23:14 EST 2009
Author: neteler
Date: 2009-01-18 01:23:14 -0500 (Sun, 18 Jan 2009)
New Revision: 35479
Modified:
grass/branches/releasebranch_6_4/db/base/execute.c
Log:
remove test if SELECT statement is used (merge from trunk, r35478)
Modified: grass/branches/releasebranch_6_4/db/base/execute.c
===================================================================
--- grass/branches/releasebranch_6_4/db/base/execute.c 2009-01-18 06:21:53 UTC (rev 35478)
+++ grass/branches/releasebranch_6_4/db/base/execute.c 2009-01-18 06:23:14 UTC (rev 35479)
@@ -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