[GRASS-dev] [GRASS GIS] #3466: v.to.db: check if column exists before running

GRASS GIS trac at osgeo.org
Mon Dec 11 02:01:31 PST 2017


#3466: v.to.db: check if column exists before running
----------------------------+-------------------------
 Reporter:  sbl             |      Owner:  grass-dev@…
     Type:  defect          |     Status:  new
 Priority:  normal          |  Milestone:  7.5.0
Component:  Vector          |    Version:  unspecified
 Keywords:  v.to.db,column  |        CPU:  All
 Platform:  All             |
----------------------------+-------------------------
 When updating a vector attribute column with v.to.db, the module does not
 check if the column to be updated exists.

 It starts anyway, and the user gets lots of error messages like the
 following:

 {{{
 DBMI-SQLite driver error:
 Error in sqlite3_prepare():
 no such column: length
 }}}


 Would be convenient if v.to.db would check if columns exist and fails with
 respective error message if not.

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



More information about the grass-dev mailing list