[GRASS-dev] [GRASS GIS] #1503: parser error with db.select

GRASS GIS trac at osgeo.org
Tue Dec 6 22:07:35 EST 2011


#1503: parser error with db.select
-------------------------------+--------------------------------------------
 Reporter:  hamish             |       Owner:  grass-dev@…              
     Type:  defect             |      Status:  new                      
 Priority:  normal             |   Milestone:  7.0.0                    
Component:  LibGIS             |     Version:  svn-trunk                
 Keywords:  parser, db.select  |    Platform:  Linux                    
      Cpu:  x86-64             |  
-------------------------------+--------------------------------------------
 NC2008 dataset in trunk:

 {{{
 GRASS7> db.select precip_30ynormals_g7 \
    sql="select annual from precip_30ynormals_g7 where cat=2"

 Description:
  Selects data from attribute table (performs SQL query statement(s)).

 Keywords:
  database, attribute table, SQL

 Usage:
  db.select [-cdvt] [sql=string] [input=name] [table=name]
    [database=name] [driver=name] [fs=character] [vs=character]
    [nv=string] [output=name] [--overwrite] [--verbose] [--quiet]

 [...]
 ERROR: Option <sql> does not accept multiple answers
 }}}

 I guess it doesn't like the 'where cat=2'
 ?

 `v.db.select where="cat=2"` seems ok though.


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1503>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list