[GRASS-SVN] r74211 - grass/trunk/scripts/v.db.dropcolumn

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Mar 9 12:05:24 PST 2019


Author: mmetz
Date: 2019-03-09 12:05:24 -0800 (Sat, 09 Mar 2019)
New Revision: 74211

Modified:
   grass/trunk/scripts/v.db.dropcolumn/v.db.dropcolumn.py
Log:
v.db.dropcolumn: adjust sql to create backup table for sqlite

Modified: grass/trunk/scripts/v.db.dropcolumn/v.db.dropcolumn.py
===================================================================
--- grass/trunk/scripts/v.db.dropcolumn/v.db.dropcolumn.py	2019-03-09 19:02:45 UTC (rev 74210)
+++ grass/trunk/scripts/v.db.dropcolumn/v.db.dropcolumn.py	2019-03-09 20:05:24 UTC (rev 74211)
@@ -101,7 +101,7 @@
 
             cmds = [
                 "BEGIN TRANSACTION",
-                "CREATE TEMPORARY TABLE ${table}_backup(${coldef})",
+                "CREATE TEMPORARY TABLE ${table}_backup (${coldef})",
                 "INSERT INTO ${table}_backup SELECT ${colnames} FROM ${table}",
                 "DROP TABLE ${table}",
                 "CREATE TABLE ${table}(${coldef})",



More information about the grass-commit mailing list