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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 2 01:51:18 PDT 2013


Author: hamish
Date: 2013-05-02 01:51:18 -0700 (Thu, 02 May 2013)
New Revision: 56074

Modified:
   grass/branches/develbranch_6/db/base/select.c
Log:
backwards CLI compatibility: don't reorder the first option (#1503)

Modified: grass/branches/develbranch_6/db/base/select.c
===================================================================
--- grass/branches/develbranch_6/db/base/select.c	2013-05-02 08:19:52 UTC (rev 56073)
+++ grass/branches/develbranch_6/db/base/select.c	2013-05-02 08:51:18 UTC (rev 56074)
@@ -187,6 +187,9 @@
     /* Initialize the GIS calls */
     G_gisinit(argv[0]);
 
+    table = G_define_standard_option(G_OPT_TABLE);
+    table->guisection = _("Connection"); 
+
     sql = G_define_option();
     sql->key = "sql";
     sql->type = TYPE_STRING;
@@ -201,9 +204,6 @@
     input->description = _("Name of file with SQL select statement(s)");
     input->guisection = _("Query");
 
-    table = G_define_standard_option(G_OPT_TABLE);
-    table->guisection = _("Connection"); 
-
     database = G_define_standard_option(G_OPT_DATABASE);
     if ((db = db_get_default_database_name()))
 	database->answer = (char *) db;



More information about the grass-commit mailing list