[GRASS-dev] [GRASS GIS] #1866: broken db driver communication in winGRASS 7

GRASS GIS trac at osgeo.org
Wed Jul 24 12:59:01 PDT 2013


#1866: broken db driver communication in winGRASS 7
------------------------------+---------------------------------------------
 Reporter:  martinl           |       Owner:  grass-dev@…              
     Type:  defect            |      Status:  new                      
 Priority:  normal            |   Milestone:  7.0.0                    
Component:  Database          |     Version:  unspecified              
 Keywords:  sqlite, wingrass  |    Platform:  MSWindows 2K             
      Cpu:  Unspecified       |  
------------------------------+---------------------------------------------

Comment(by neteler):

 Replying to [comment:44 mmetz]:
 > Replying to [comment:42 neteler]:
 > > Right. So we need a test for that rather than failing with a slightly
 > > obscured error message. Or expand it to say:
 > >
 > > "Table <%s> not found in current mapset"
 >
 > Better:
 > "Table <%s> not found in database <%s> using driver <%s>"
 >
 > Done in r57260.

 Backported to 6.4 and 6.5 in r57264 and r57265.

 Tested with DBF and SQLite backends:

 {{{
 # DBF driver, user1 mapset
 GRASS 6.4.3svn (nc_spm_08):~/grass64 > db.describe bla
 Table <bla> not found in database <$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/>
 using driver <dbf>

 GRASS 6.4.3svn (nc_spm_08):~/grass64 > db.describe myarea
 table:myarea
 description:
 insert:yes
 delete:yes
 ncols:5
 nrows:1

 ----------
 # SQLite driver, sqlite mapset
 GRASS 6.4.3svn (nc_spm_08):~/grass64 > db.tables -p
 testpoint

 GRASS 6.4.3svn (nc_spm_08):~/grass64 > db.describe bla
 Table <bla> not found in database

 <$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite.db> using driver <sqlite>
 GRASS 6.4.3svn (nc_spm_08):~/grass64 > db.describe testpoint
 table:testpoint
 description:
 insert:?
 delete:?
 ncols:4
 nrows:1

 column:cat
 description:
 type:INTEGER
 ...
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1866#comment:45>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list