소스 검색

fix bug https://trac.osgeo.org/grass/ticket/338

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33980 15284696-431f-4ddb-bdfa-cd5b030d7da7
Moritz Lennert 16 년 전
부모
커밋
fa3281c8b6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      scripts/v.db.join/v.db.join.py

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

@@ -98,14 +98,14 @@ def main():
 	    coltype = "%s" % col[1]
 	    coltype = "%s" % col[1]
 	colspec = "%s %s" % (colname, coltype)
 	colspec = "%s %s" % (colname, coltype)
 
 
-	if grass.run_command('v.db.addcol', map = map, columns = colspec) != 0:
+	if grass.run_command('v.db.addcol', map = map, columns = colspec, layer = layer) != 0:
 	    grass.fatal("Error creating column <%s>." % colname)
 	    grass.fatal("Error creating column <%s>." % colname)
 
 
 	stmt = template.substitute(table = maptable, column = column,
 	stmt = template.substitute(table = maptable, column = column,
 				   otable = otable, ocolumn = ocolumn,
 				   otable = otable, ocolumn = ocolumn,
 				   colname = colname)
 				   colname = colname)
 
 
-	if grass.write_command('db.execute', stdin = stmt) != 0:
+	if grass.write_command('db.execute', stdin = stmt, database = database, driver = driver) != 0:
 	    grass.fatal("Error filling column <%s>." % colname)
 	    grass.fatal("Error filling column <%s>." % colname)
 
 
     # write cmd history:
     # write cmd history: