Browse Source

show SQL statement in verbose mode

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41243 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 15 years ago
parent
commit
bc96549d0f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      scripts/v.db.update/v.db.update.py

+ 2 - 0
scripts/v.db.update/v.db.update.py

@@ -112,6 +112,8 @@ def main():
     if where:
 	cmd += " WHERE " + where
 
+    grass.verbose("SQL: \"%s\"" % cmd)
+
     grass.write_command('db.execute', input = '-', database = database, driver = driver, stdin = cmd)
 
     # write cmd history: