Opened 14 years ago

Closed 13 years ago

#1229 closed defect (fixed)

Error in db.droptable

Reported by: akbgf Owned by: grass-dev@…
Priority: normal Milestone: 7.0.0
Component: Database Version: svn-trunk
Keywords: db.droptable Cc:
CPU: x86-32 Platform: Linux

Description

GRASS-7.0 r44530, the db.droptable complains about -f flag, and does not remove the table: (Fri Dec 3 13:13:41 2010) db.droptable -f table=refl : Sorry, <f> is not a valid flag

The table 'refl' is present, driver=pg. GRASS-6.4 drops the table.

Andres Kuusk, Tartu Observatory, Estonia, andres@…

Change History (3)

comment:1 by lucadelu, 13 years ago

I try with r48337 and NC datasete I got this error

db.droptable hospitals
dbmi: db_drop_table() not implemented

I grep db_drop_table and I found

lib/python/ctypes/dbmi.py

# /home/luca/compilati/grass70_new/dist.i686-pc-linux-gnu/include/grass/dbmidefs.h: 123
if hasattr(_libs['grass_dbmiclient.7.0.svn'], 'db_drop_table'):
    db_drop_table = _libs['grass_dbmiclient.7.0.svn'].db_drop_table
    db_drop_table.restype = c_int
    db_drop_table.argtypes = [POINTER(dbDriver), POINTER(dbString)]

cheers Luca

in reply to:  1 ; comment:2 by mmetz, 13 years ago

Replying to lucadelu:

I try with r48337 and NC datasete I got this error

[snip]

Worksforme with both dbf and sqlite driver. Try make disclean, svn up, configure, make.

Markus M

in reply to:  2 comment:3 by lucadelu, 13 years ago

Resolution: fixed
Status: newclosed

Replying to mmetz:

Worksforme with both dbf and sqlite driver. Try make disclean, svn up, configure, make.

I confirm that it works. I close the ticket as fixed

Markus M

Luca

Note: See TracTickets for help on using tickets.