[GRASS-user] Python placeholder (%d) in stdin statement of db.execute

Johannes Radinger johannesradinger at gmail.com
Thu Apr 11 07:43:27 PDT 2013

Oh yes, of course I could use the sql= option... I just overlooked that
after moving
from GRASS6.5 where this option is not yet existing. Thank you ...


On Thu, Apr 11, 2013 at 12:47 PM, Glynn Clements
<glynn at gclements.plus.com>wrote:

> Johannes Radinger wrote:
> > Thank you Hamish, including the option "input=-" in the python line (for
> > GRASS7) solved the problem.
> Why read the command from stdin rather than using sql=...? E.g.:
> grass.write_command("db.execute", sql = "UPDATE my points SET prob=100")
> --
> Glynn Clements <glynn at gclements.plus.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130411/fa087b5d/attachment.html>

More information about the grass-user mailing list