[GRASSLIST:7063] Re: error in db.execute

Markus Neteler neteler at itc.it
Tue Jun 7 11:39:50 EDT 2005


On Mon, Jun 06, 2005 at 04:06:12PM +0300, orkun wrote:
> hello
> 
> connection is ok,
> test databese ok,
> 
> but
> what might lead this problem ?
> ---------
> GRASS 6.0.0 (bartin):~ > db.execute driver=pg database=bzk 
> input='/home/orkun/sql1'
> DBMI-Postgres driver error:
> Cannot execute:
> select * from j3
> 
> 
> ERROR: Error while executing: "select * from j3"
> -------

Since SELECT is requested, it should be db.select:

 db.select driver=pg database=bzk input='/home/orkun/sql1'

Markus




More information about the grass-user mailing list