#1844: wingrass: db_open_select_cursor fails for DBF driver.
---------------------------+------------------------------------------------
Reporter: martinl | Owner: grass-dev@…
Type: defect | Status: new
Priority: critical | Milestone: 6.4.3
Component: Database | Version: unspecified
Keywords: wingrass, dbf | Platform: MSWindows 2K
Cpu: Unspecified |
---------------------------+------------------------------------------------
There is problem with DBF driver on MS Windows. To reproduce this bug run:
{{{
db.connect driver=dbf database='$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/'
v.random out=n n=3
v.db.addtable map=n columns="class varchar(10)"
}}}
It stops at source:grass/trunk/lib/db/dbmi_client/c_openselect.c#L63
{{{
D3/5: db_select_int()
D3/5: SQL: SELECT cat FROM n
D3/5: SQL statement parsed successfully: SELECT cat FROM n
D2/5: find_table(): table = n
D2/5: ? n
D2/5: load_table_head(): tab = 0,
/opt/grassdata/nc_spm_08_grass7/dbf/dbf//n.dbf
D2/5: ncols = 2
D2/5: DBFFieldType 1
D3/5: add_column(): tab = 0, type = 2, name = cat, width = 11, decimals =
0
D2/5: DBFFieldType 0
D3/5: add_column(): tab = 0, type = 1, name = class, width = 10, decimals
= 0
D3/5: Doing SQL command <4> on DBF table... (see include/sqlp.h)
D2/5: SELECT
D2/5: sel(): tab = 0
D2/5: load_table(): tab = 0
D2/5: ncols = 2 nrows = 0
D2/5: load_table_head(): tab = 0,
/opt/grassdata/nc_spm_08_grass7/dbf/dbf//n.dbf
}}}
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1844>
GRASS GIS <http://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev