[GRASS-SVN] r31889 - in grass/trunk/scripts: v.db.addcol
v.db.addtable
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jun 29 18:57:45 EDT 2008
Author: hcho
Date: 2008-06-29 18:57:45 -0400 (Sun, 29 Jun 2008)
New Revision: 31889
Modified:
grass/trunk/scripts/v.db.addcol/description.html
grass/trunk/scripts/v.db.addcol/v.db.addcol
grass/trunk/scripts/v.db.addtable/description.html
grass/trunk/scripts/v.db.addtable/v.db.addtable
Log:
Changed help messages to adapt the SQL2003 specification (DOUBLE => DOUBLE PRECISION)
Modified: grass/trunk/scripts/v.db.addcol/description.html
===================================================================
--- grass/trunk/scripts/v.db.addcol/description.html 2008-06-29 22:50:49 UTC (rev 31888)
+++ grass/trunk/scripts/v.db.addcol/description.html 2008-06-29 22:57:45 UTC (rev 31889)
@@ -1,16 +1,16 @@
<h2>DESCRIPTION</h2>
-<em>v.db.addcol</em> adds one or more column(s) to the attribute table connected
-to a given vector map. It automatically checks the connection for the specified
-layer.
+<em>v.db.addcol</em> adds one or more column(s) to the attribute table
+connected to a given vector map. It automatically checks the connection for the
+specified layer.
<h2>NOTES</h2>
v.db.addcol is a front-end to <em>db.execute</em> to allow easier usage.
-The supported types of columns depend on the database backend. However,
-all backends should support VARCHAR, INT, DOUBLE/REAL and DATE. The default dbf backend
-supports only these types.
+The supported types of columns depend on the database backend. However, all
+backends should support VARCHAR, INT, DOUBLE PRECISION and DATE. The default
+dbf backend supports only these types.
The existing database connection(s) can be verified with <em>v.db.connect</em>.
Modified: grass/trunk/scripts/v.db.addcol/v.db.addcol
===================================================================
--- grass/trunk/scripts/v.db.addcol/v.db.addcol 2008-06-29 22:50:49 UTC (rev 31888)
+++ grass/trunk/scripts/v.db.addcol/v.db.addcol 2008-06-29 22:57:45 UTC (rev 31889)
@@ -40,7 +40,7 @@
#%option
#% key: columns
#% type: string
-#% description: Name and type of the new column(s) (types depend on database backend, but all support VARCHAR(), INT, DOUBLE and DATE)
+#% description: Name and type of the new column(s) (types depend on database backend, but all support VARCHAR(), INT, DOUBLE PRECISION and DATE)
#% required : yes
#%end
Modified: grass/trunk/scripts/v.db.addtable/description.html
===================================================================
--- grass/trunk/scripts/v.db.addtable/description.html 2008-06-29 22:50:49 UTC (rev 31888)
+++ grass/trunk/scripts/v.db.addtable/description.html 2008-06-29 22:57:45 UTC (rev 31889)
@@ -1,17 +1,18 @@
<h2>DESCRIPTION</h2>
-<em>v.db.addtable</em> creates and adds a new attribute table to a given vector map. It
-links the table to the specified layer of the vector map. If the vector map
-is not yet linked to any table, new a database link is established based
-on the MAPSET database settings (see <em>db.connect</em>).
+<em>v.db.addtable</em> creates and adds a new attribute table to a given vector
+map. It links the table to the specified layer of the vector map. If the vector
+map is not yet linked to any table, new a database link is established based on
+the MAPSET database settings (see <em>db.connect</em>).
<h2>NOTES</h2>
-<em>v.db.addtable</em> is a front-end to <em>db.execute</em> to allow easier usage.
+<em>v.db.addtable</em> is a front-end to <em>db.execute</em> to allow easier
+usage.
-The supported types of columns depend on the database backend. However,
-all backends should support VARCHAR, INT, DOUBLE and DATE. The default dbf backend
-supports only these types.
+The supported types of columns depend on the database backend. However, all
+backends should support VARCHAR, INT, DOUBLE PRECISION and DATE. The default
+dbf backend supports only these types.
The existing database connection(s) can be verified with <em>v.db.connect</em>.
@@ -19,7 +20,7 @@
Adding a new attribute table with a single column to default layer 1:<br>
<div class="code"><pre>
-v.db.addtable sentiero_brenta_points columns="slope double"
+v.db.addtable sentiero_brenta_points columns="slope double precision"
v.db.connect -p sentiero_brenta_points
v.info -c sentiero_brenta_points
</pre></div>
@@ -27,7 +28,7 @@
<p>
Adding a new attribute table with two columns to layer 2:<br>
<div class="code"><pre>
-v.db.addtable sentiero_brenta_points columns="slope double,myname varchar(15)" layer=2
+v.db.addtable sentiero_brenta_points columns="slope double precision,myname varchar(15)" layer=2
v.db.connect -p sentiero_brenta_points
v.info -c sentiero_brenta_points
</pre></div>
Modified: grass/trunk/scripts/v.db.addtable/v.db.addtable
===================================================================
--- grass/trunk/scripts/v.db.addtable/v.db.addtable 2008-06-29 22:50:49 UTC (rev 31888)
+++ grass/trunk/scripts/v.db.addtable/v.db.addtable 2008-06-29 22:57:45 UTC (rev 31889)
@@ -41,7 +41,7 @@
#%option
#% key: columns
#% type: string
-#% description: Name and type of the new column(s) (types depend on database backend, but all support VARCHAR(), INT, DOUBLE and DATE)
+#% description: Name and type of the new column(s) (types depend on database backend, but all support VARCHAR(), INT, DOUBLE PRECISION and DATE)
#% answer: cat integer
#% required : no
#% multiple : yes
More information about the grass-commit
mailing list