Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#1208 closed defect (invalid) option=start/end fails to populate database

Reported by: voncasec Owned by: grass-dev@…
Priority: normal Milestone: 6.4.1
Component: Vector Version: svn-releasebranch64
Keywords: Cc:
CPU: x86-64 Platform: Linux


I am unable to upload the start or end coordinates of a line segment to a database using the command. map=IPLines_NorthBlock@IdealizedGrid option=start qcolumn=Start

I have tested using the North Carolina database as follows:

v.db.addcol map=busroute11@PERMANENT columns=test double map=busroute11@PERMANENT option=end columns=test (Same error is reported for option=start) -p does successfully print all of the coordinates

Reading features... Updating database... DBMI-DBF driver error: SQL parser error: syntax error, unexpected '(', expecting NAME processing '(' in statement: update busroute11 set test = 637239.56871539, (null) = 226030.942582791 where cat = 1 Error in db_execute_immediate() 1 categories read from vector map (layer 1) 1 records selected from table (layer 1) 1 categories read from vector map exist in selection from table 0 records updated/inserted (layer 1) 1 update/insert errors (layer 1)

Change History (2)

comment:1 by voncasec, 14 years ago

Resolution: invalid
Status: newclosed

comment:2 by martinl, 14 years ago

option=start/end requires at least two columns - the module should print error message and exit - fixed in r44201.

Note: See TracTickets for help on using tickets.