Tue, Apr 26 2005
00:29:36
|
|
Request created by jidanni@jidanni.org
|
|
Return-Path |
<jidanni@jidanni.org>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
To |
grass-bugs@intevation.de
|
Subject |
db.execute: create, add: catch names too long
|
From |
Dan Jacobson <jidanni@jidanni.org>
|
Date |
Tue, 26 Apr 2005 01:21:37 +0800
|
Message-ID |
<87fyxe3h7i.fsf@jidanni.org>
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
X-Spam-Status |
No, hits=-4.5 tagged_above=-999.0 required=3.0 tests=BAYES_00, DATE_IN_PAST_03_06
|
X-Spam-Level |
|
$ echo 'create table zz (cat int, axis int, contour int, \
x double, y double, segmentlength double, linelength double)'|db.execute
This should be caught that segmentlength is too long a name, and exit $?=1.
P.S, no matter what I click in d.path, it will not let me proceed from
choosing "from":
$ d.path z6
L: from M: to R: quit
Node 4: 233530.038151 2680135.141840
Node 1: 233016.843750 2679852.947917
Node 4: 233530.038151 2680135.141840
On http://grass.itc.it/grass57/tutorial/network.html, it says:
"Reachability of Schools (find better name)".
Maybe use 'Distance bands from selected schools'.
I had to use cat \> 1 in this makefile, else v.iso.net Segmentation faults:
roads:
echo CREATE TABLE $@ \(cat int,fare double,distance \
double\)|db.execute
v.db.connect map=b8 table=$@
v.to.db map=b8 option=cat
# echo UPDATE $@ SET fare=300|db.execute #except axis
echo UPDATE $@ SET fare=300 where cat \> 1|db.execute
iso:
v.net.iso input=b8 output=$@ ccats=1 \
costs=$$(seq -s, 100 100 2000) afcolumn=fare
|
|
Tue, Apr 26 2005
02:43:19
|
|
Mail sent by hamish_nospam@yahoo.com
|
|
Return-Path |
<hamish_nospam@yahoo.com>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Date |
Tue, 26 Apr 2005 12:43:03 +1200
|
From |
Hamish <hamish_nospam@yahoo.com>
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Cc |
grass5@grass.itc.it
|
Subject |
Re: [GRASS5] [bug #3184] (grass) db.execute: create, add: catch names too long
|
Message-Id |
<20050426124303.3d8c194f.hamish_nospam@yahoo.com>
|
In-Reply-To |
<20050425222936.6B1C71005CD@lists.intevation.de>
|
References |
<20050425222936.6B1C71005CD@lists.intevation.de>
|
X-Mailer |
Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
|
X-Face |
M<EoB)"*Z~u!,vFhXmw}R_KbdBta*P_=T|rbBL'e1/CQ9;/1g\BU3&!=y8ria$2Uk!HT&BB 8i?|X_+7~1jsy}F~g$2va%3fV`*=L(*cem[@3\yg,G,@rg6/QMJ
|
Mime-Version |
1.0
|
Content-Type |
text/plain; charset=US-ASCII
|
Content-Transfer-Encoding |
7bit
|
X-Spam-Status |
No, hits=-4.0 tagged_above=-999.0 required=3.0 tests=BAYES_00, FORGED_YAHOO_RCVD
|
X-Spam-Level |
|
> this bug's URL: http://intevation.de/rt/webrt?serial_num=3184
> ---------------------------------------------------------------------
>
> $ echo 'create table zz (cat int, axis int, contour int, \
> x double, y double, segmentlength double, linelength
> double)'|db.execute
> This should be caught that segmentlength is too long a name, and exit
> $?=1.
That is it is too long for the DBF driver, as DBF column names may only
be 10 chars, as documented in the GRASS SQL help page. Other DBs may be
fine with it(?).
Hamish
|
|
Wed, Apr 27 2005
02:00:38
|
|
Mail sent by jidanni@jidanni.org
|
|
Return-Path |
<jidanni@jidanni.org>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
To |
Hamish via RT <grass-bugs@intevation.de>
|
Subject |
Re: [bug #3184] (grass) db.execute: create, add: catch
|
References |
<20050426004319.679C41006A2@lists.intevation.de>
|
From |
Dan Jacobson <jidanni@jidanni.org>
|
Date |
Wed, 27 Apr 2005 07:41:44 +0800
|
Message-ID |
<878y35ds1z.fsf@jidanni.org>
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
X-Spam-Status |
No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
|
X-Spam-Level |
|
>> $ echo 'create table zz (cat int, axis int, contour int, \
>> x double, y double, segmentlength double, linelength
>> double)'|db.execute
>> This should be caught that segmentlength is too long a name, and exit
>> $?=1.
H> That is it is too long for the DBF driver, as DBF column names may only
H> be 10 chars, as documented in the GRASS SQL help page. Other DBs may be
H> fine with it(?).
well, shouldn't grass warn "if you use so long a name, you'll be sorry later".
|
|
Sat, Aug 20 2005
13:05:50
|
|
Area changed to grass6.1 by msieczka
|
|
Sat, Aug 20 2005
13:08:02
|
|
Mail sent by msieczka
|
|
As to column name lenght issue - the DBF driver limitations are listed in "sql
notes" part of the manual.
Maciek |
|
Wed, Aug 31 2005
20:50:46
|
|
Area changed to grass6 by mneteler
|
|