浏览代码

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 年之前
父节点
当前提交
bc96549d0f
共有 1 个文件被更改,包括 2 次插入0 次删除
  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: