[GRASS-SVN] r67377 - grass/trunk/scripts/v.db.join
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Dec 25 12:42:54 PST 2015
Author: martinl
Date: 2015-12-25 12:42:53 -0800 (Fri, 25 Dec 2015)
New Revision: 67377
Modified:
grass/trunk/scripts/v.db.join/v.db.join.py
Log:
v.db.join: rename variable introduced in r67376
Modified: grass/trunk/scripts/v.db.join/v.db.join.py
===================================================================
--- grass/trunk/scripts/v.db.join/v.db.join.py 2015-12-25 20:40:10 UTC (rev 67376)
+++ grass/trunk/scripts/v.db.join/v.db.join.py 2015-12-25 20:42:53 UTC (rev 67377)
@@ -124,17 +124,17 @@
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]
More information about the grass-commit
mailing list