[GRASS-SVN] r57260 - grass/trunk/db/db.describe
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jul 24 07:05:42 PDT 2013
Author: mmetz
Date: 2013-07-24 07:05:41 -0700 (Wed, 24 Jul 2013)
New Revision: 57260
Modified:
grass/trunk/db/db.describe/main.c
Log:
db.describe: fix #1866
Modified: grass/trunk/db/db.describe/main.c
===================================================================
--- grass/trunk/db/db.describe/main.c 2013-07-24 13:08:54 UTC (rev 57259)
+++ grass/trunk/db/db.describe/main.c 2013-07-24 14:05:41 UTC (rev 57260)
@@ -46,6 +46,11 @@
dbString stmt;
parse_command_line(argc, argv);
+ if (!db_table_exists(parms.driver, parms.database, parms.table)) {
+ G_message(_("Table <%s> not found in database <%s> using driver <%s>"),
+ parms.table, parms.database, parms.driver);
+ exit(EXIT_SUCCESS);
+ }
driver = db_start_driver(parms.driver);
if (driver == NULL)
G_fatal_error(_("Unable to start driver <%s>"), parms.driver);
More information about the grass-commit
mailing list