[GRASS-SVN] r74049 - in grass/trunk/db/drivers: postgres sqlite
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jan 30 15:17:10 PST 2019
Author: hcho
Date: 2019-01-30 15:17:10 -0800 (Wed, 30 Jan 2019)
New Revision: 74049
Modified:
grass/trunk/db/drivers/postgres/index.c
grass/trunk/db/drivers/sqlite/index.c
Log:
db drivers: remove an extra space in SQL
Modified: grass/trunk/db/drivers/postgres/index.c
===================================================================
--- grass/trunk/db/drivers/postgres/index.c 2019-01-30 22:50:06 UTC (rev 74048)
+++ grass/trunk/db/drivers/postgres/index.c 2019-01-30 23:17:10 UTC (rev 74049)
@@ -35,7 +35,7 @@
db_append_string(&sql, " index ");
if (PQserverVersion(pg_conn) >= 90500)
- db_append_string(&sql, " if not exists ");
+ db_append_string(&sql, "if not exists ");
db_append_string(&sql, db_get_index_name(index));
db_append_string(&sql, " on ");
Modified: grass/trunk/db/drivers/sqlite/index.c
===================================================================
--- grass/trunk/db/drivers/sqlite/index.c 2019-01-30 22:50:06 UTC (rev 74048)
+++ grass/trunk/db/drivers/sqlite/index.c 2019-01-30 23:17:10 UTC (rev 74049)
@@ -46,7 +46,7 @@
if (db_test_index_type_unique(index))
db_append_string(&sql, " unique");
- db_append_string(&sql, " index ");
+ 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