Explorar o código

db.test: fix db.select call

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58545 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler %!s(int64=11) %!d(string=hai) anos
pai
achega
d38b169d85
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scripts/db.test/db.test.py

+ 1 - 1
scripts/db.test/db.test.py

@@ -54,7 +54,7 @@ def main():
 	    r = grass.write_command('db.execute', input = '-', stdin = sql + '\n')
 	else:
 	    resf = file(result, 'w')
-	    r = grass.write_command('db.select', flags = 'c', stdin = sql + '\n', stdout = resf)
+	    r = grass.write_command('db.select', input = '-', flags = 'c', stdin = sql + '\n', stdout = resf)
 	    resf.close()
 
 	if r != 0: