[GRASS-dev] [bug #4527] (grass) db.copy: segfault when to_table already exists

The bug still bites (CVS today).

Maciek

-------------------------------------------- Managed by Request Tracker

Hi,

I hope the attached patch will fix it...

Best, Martin

2006/7/10, Maciek Sieczka via RT <grass-bugs@intevation.de>:

The bug still bites (CVS today).

Maciek

-------------------------------------------- Managed by Request Tracker

_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev

(attachments)

copy_tab.diff.gz (755 Bytes)

Martin Landa napisa³(a):

Hi,

I hope the attached patch will fix it...

Nice! Will try that (propably not today/tomorrow though).

Cheers,
Maciek

Maciej Sieczka napisa³(a):

Martin Landa napisa³(a):

Hi,

I hope the attached patch will fix it...

Nice! Will try that (propably not today/tomorrow though).

OK, had some time now.

The patch works against current CVS. Grass built and installed OK.
db.copy doesn't segfault when trying to ovewrite an existing table and
works properly when copying table under unique name. All seems fine.
Tested only using DBF though.

Could someone apply Martin's patch?

Thanks!
Maciek

Patch applied to both HEAD and 6.1.0-Branch.

thanks
Markus

On Mon, Jul 10, 2006 at 01:50:40PM +0200, Martin Landa wrote:

Hi,

I hope the attached patch will fix it...

Best, Martin

2006/7/10, Maciek Sieczka via RT <grass-bugs@intevation.de>:
>The bug still bites (CVS today).
>
>Maciek
>
>
>-------------------------------------------- Managed by Request Tracker
>
>_______________________________________________
>grass-dev mailing list
>grass-dev@grass.itc.it
>http://grass.itc.it/mailman/listinfo/grass-dev
>

_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev

--
Markus Neteler <neteler itc it> http://mpa.itc.it/markus/
ITC-irst - Centro per la Ricerca Scientifica e Tecnologica
MPBA - Predictive Models for Biol. & Environ. Data Analysis
Via Sommarive, 18 - 38050 Povo (Trento), Italy