Browse Source

improved test if table exists

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48066 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 13 years ago
parent
commit
d93c14687b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/db.droptable/db.droptable.py

+ 1 - 1
scripts/db.droptable/db.droptable.py

@@ -52,7 +52,7 @@ def main():
 
     # check if table exists
     nuldev = file(os.devnull, 'w')
-    if not grass.db_describe(table, stdout = nuldev, stderr = nuldev):
+    if not grass.db_table_exist(table, stdout = nuldev, stderr = nuldev):
 	grass.fatal(_("Table <%s> not found in current mapset") % table)
 
     # check if table is used somewhere (connected to vector map)