浏览代码

v.db.join: rename variable introduced in https://trac.osgeo.org/grass/changeset/67376

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67377 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 年之前
父节点
当前提交
0936768b7f
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      scripts/v.db.join/v.db.join.py

+ 5 - 5
scripts/v.db.join/v.db.join.py

@@ -124,17 +124,17 @@ def main():
 	if colname == column:
 	    continue
         
-        use_precision = False
+        use_len = False
 	if len(col) > 2:
-            use_precision = True
+            use_len = True
             # Sqlite 3 does not support the precision number any more
             if driver == "sqlite":
-                use_precision = False
+                use_len = False
             # MySQL - expect format DOUBLE PRECISION(M,D), see #2792
             elif driver == "mysql" and col[1] == 'DOUBLE PRECISION':
-                use_precision = False
+                use_len = False
         
-        if use_precision:
+        if use_len:
 	    coltype = "%s(%s)" % (col[1], col[2])
 	else:
 	    coltype = "%s" % col[1]