[GRASS-dev] [GRASS GIS] #2147: db.databases not working in GRASS 7

GRASS GIS trac at osgeo.org
Sun Dec 22 04:21:11 PST 2013


#2147: db.databases not working in GRASS 7
----------------------------------+-----------------------------------------
 Reporter:  cmbarton              |       Owner:  grass-dev@…              
     Type:  defect                |      Status:  new                      
 Priority:  normal                |   Milestone:  7.0.0                    
Component:  Database              |     Version:  svn-trunk                
 Keywords:  db.databases, sqlite  |    Platform:  All                      
      Cpu:  OSX/Intel             |  
----------------------------------+-----------------------------------------
Changes (by neteler):

  * platform:  Unspecified => All


Comment:

 Confirmed problem on Fedora 19:

 {{{
 # using older copy of NC dataset location:
 GRASS 7.0.svn (nc_spm_08):~ > db.drivers -p
 ogr
 sqlite
 dbf

 GRASS 7.0.svn (nc_spm_08):~ > g.gisenv set=DEBUG=1
 GRASS 7.0.svn (nc_spm_08):~ > db.databases
 D1/1: db_d_init_error(): DBF
 dbmi: db_list_databases() not implemented
 dbmi: db_list_databases() not implemented
 ERROR: Unable to list databases

 GRASS 7.0.svn (nc_spm_08):~ > db.connect -p
 driver: dbf
 database: /home/neteler/grassdata/nc_spm_08/user1/dbf/
 schema:
 group:

 GRASS 7.0.svn (nc_spm_08):~ > db.connect -d
 D1/1: Creating new default DB params with db_set_default_connection()
 Default driver / database set to:
 driver: sqlite
 database: $GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db

 GRASS 7.0.svn (nc_spm_08):~ > db.connect -p
 driver: sqlite
 database: /home/neteler/grassdata/nc_spm_08/user1/sqlite/sqlite.db
 schema:
 group:

 GRASS 7.0.svn (nc_spm_08):~ > db.databases
 D1/1: db_d_init_error(): SQLite
 D1/1: db count = 0
 No databases found
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2147#comment:4>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list