[GRASS-SVN] r61893 - grass/branches/releasebranch_7_0/scripts/db.test

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 13 09:52:47 PDT 2014


Author: martinl
Date: 2014-09-13 09:52:47 -0700 (Sat, 13 Sep 2014)
New Revision: 61893

Modified:
   grass/branches/releasebranch_7_0/scripts/db.test/db.test.py
   grass/branches/releasebranch_7_0/scripts/db.test/test1
Log:
fix db.test for sqlite (~ is PostgreSQL specific)
    (merge r61892 from trunk)


Modified: grass/branches/releasebranch_7_0/scripts/db.test/db.test.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/db.test/db.test.py	2014-09-13 16:51:18 UTC (rev 61892)
+++ grass/branches/releasebranch_7_0/scripts/db.test/db.test.py	2014-09-13 16:52:47 UTC (rev 61893)
@@ -5,7 +5,7 @@
 # AUTHOR(S):	Radim Blazek
 #               Converted to Python by Glynn Clements
 # PURPOSE:	Test database driver
-# COPYRIGHT:	(C) 2004 by the GRASS Development Team
+# COPYRIGHT:	(C) 2004-2014 by the GRASS Development Team
 #
 #		This program is free software under the GNU General Public
 #		License (version 2). Read the file COPYING that comes with GRASS

Modified: grass/branches/releasebranch_7_0/scripts/db.test/test1
===================================================================
--- grass/branches/releasebranch_7_0/scripts/db.test/test1	2014-09-13 16:51:18 UTC (rev 61892)
+++ grass/branches/releasebranch_7_0/scripts/db.test/test1	2014-09-13 16:52:47 UTC (rev 61893)
@@ -13,7 +13,7 @@
 2||xxx
 
 S
-select c1 from grass_test1 where d1 < 500 / 2 and i1 <> 2  and c1 ~ 'bc' 
+select c1 from grass_test1 where d1 < 500 / 2 and i1 <> 2  and c1 like '%bc%' 
 abcd
 
 X
@@ -33,5 +33,3 @@
 
 X
 drop table grass_test1
-
-



More information about the grass-commit mailing list