[GRASS-dev] [GRASS GIS] #1229: Error in db.droptable

#1229: Error in db.droptable
--------------------------+-------------------------------------------------
Reporter: akbgf | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Database | Version: svn-trunk
Keywords: db.droptable | Platform: Linux
      Cpu: x86-32 |
--------------------------+-------------------------------------------------
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@aai.ee

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1229&gt;
GRASS GIS <http://grass.osgeo.org>

#1229: Error in db.droptable
--------------------------+-------------------------------------------------
Reporter: akbgf | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Database | Version: svn-trunk
Keywords: db.droptable | Platform: Linux
      Cpu: x86-32 |
--------------------------+-------------------------------------------------

Comment(by lucadelu):

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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1229#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1229: Error in db.droptable
--------------------------+-------------------------------------------------
Reporter: akbgf | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Database | Version: svn-trunk
Keywords: db.droptable | Platform: Linux
      Cpu: x86-32 |
--------------------------+-------------------------------------------------

Comment(by mmetz):

Replying to [comment:1 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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1229#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1229: Error in db.droptable
-----------------------+----------------------------------------------------
  Reporter: akbgf | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: Database | Version: svn-trunk
Resolution: fixed | Keywords: db.droptable
  Platform: Linux | Cpu: x86-32
-----------------------+----------------------------------------------------
Changes (by lucadelu):

  * status: new => closed
  * resolution: => fixed

Comment:

Replying to [comment:2 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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1229#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>