Explorar o código

show SQL statement in verbose mode

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41243 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman %!s(int64=15) %!d(string=hai) anos
pai
achega
bc96549d0f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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: