Here's a patch to copy_tab.c to checks to see if a table already exists
before writing. Objections?
--
Brad Douglas <rez touchofmadness com> KB8UYR
Address: 37.493,-121.924 / WGS84 National Map Corps #TNMC-3785
(attachments)
copy_tab.c.pat (1.83 KB)
Hi Brad,
After patching the file, I get segfault on my pc...
GRASS 6.1.cvs (karlin):~ > db.copy from_table=martin.h1 to_t=martin.h1
WARNING: Table 'grass_karlin' already exists
Segmentation fault
So I have slightly modified your patch, see the attachment. I hope it helps...
Best regards, Martin
2006/7/18, Brad Douglas <rez@touchofmadness.com>:
Here's a patch to copy_tab.c to checks to see if a table already exists
before writing. Objections?
--
Brad Douglas <rez touchofmadness com> KB8UYR
Address: 37.493,-121.924 / WGS84 National Map Corps #TNMC-3785
_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev
(attachments)
copy_tab.c_v2.patch (1.94 KB)
Hi,
martin, could you post you patches also to cvs?
thanks
jachym
On Tue, Jul 18, 2006 at 01:35:54PM +0200, Martin Landa wrote:
Hi Brad,
After patching the file, I get segfault on my pc...
GRASS 6.1.cvs (karlin):~ > db.copy from_table=martin.h1 to_t=martin.h1
WARNING: Table 'grass_karlin' already exists
Segmentation fault
So I have slightly modified your patch, see the attachment. I hope it
helps...
Best regards, Martin
2006/7/18, Brad Douglas <rez@touchofmadness.com>:
>Here's a patch to copy_tab.c to checks to see if a table already exists
>before writing. Objections?
>
>
>--
>Brad Douglas <rez touchofmadness com> KB8UYR
>Address: 37.493,-121.924 / WGS84 National Map Corps #TNMC-3785
>
>
>_______________________________________________
>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
--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507
Dear Jachym,
I have not write access to CVS yet, on the other hand I think it is
better to test it before committing to CVS...
Best, Martin
2006/7/18, Jachym Cepicky <jachym.cepicky@centrum.cz>:
Hi,
martin, could you post you patches also to cvs?
thanks
jachym
On Tue, Jul 18, 2006 at 01:35:54PM +0200, Martin Landa wrote:
> Hi Brad,
>
> After patching the file, I get segfault on my pc...
>
> GRASS 6.1.cvs (karlin):~ > db.copy from_table=martin.h1 to_t=martin.h1
> WARNING: Table 'grass_karlin' already exists
> Segmentation fault
>
> So I have slightly modified your patch, see the attachment. I hope it
> helps...
>
> Best regards, Martin
>
> 2006/7/18, Brad Douglas <rez@touchofmadness.com>:
> >Here's a patch to copy_tab.c to checks to see if a table already exists
> >before writing. Objections?
> >
> >--
> >Brad Douglas <rez touchofmadness com> KB8UYR
> >Address: 37.493,-121.924 / WGS84 National Map Corps #TNMC-3785
> >
> >_______________________________________________
> >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
--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFEvM4ZyKt0uAjU4I8RAvLOAKC0Ec/gJOaWD06sr/zZbrURaWOU8wCgzleA
Rj8jtLKot+WELwQrtVb6rIY=
=BaAQ
-----END PGP SIGNATURE-----