[GRASS-SVN] r56636 - grass/trunk/db/drivers/sqlite
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jun 8 12:32:28 PDT 2013
Author: mmetz
Date: 2013-06-08 12:32:28 -0700 (Sat, 08 Jun 2013)
New Revision: 56636
Modified:
grass/trunk/db/drivers/sqlite/index.c
Log:
sqlite driver: avoid error when index exists already
Modified: grass/trunk/db/drivers/sqlite/index.c
===================================================================
--- grass/trunk/db/drivers/sqlite/index.c 2013-06-08 09:05:35 UTC (rev 56635)
+++ grass/trunk/db/drivers/sqlite/index.c 2013-06-08 19:32:28 UTC (rev 56636)
@@ -47,6 +47,7 @@
db_append_string(&sql, " unique");
db_append_string(&sql, " index ");
+ db_append_string(&sql, " if not exists ");
db_append_string(&sql, db_get_index_name(index));
db_append_string(&sql, " on ");
More information about the grass-commit
mailing list