Explorar o código

fix db.test for sqlite (~ is PostgreSQL specific)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@61892 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa %!s(int64=10) %!d(string=hai) anos
pai
achega
d97c2f6b9b
Modificáronse 2 ficheiros con 2 adicións e 4 borrados
  1. 1 1
      scripts/db.test/db.test.py
  2. 1 3
      scripts/db.test/test1

+ 1 - 1
scripts/db.test/db.test.py

@@ -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

+ 1 - 3
scripts/db.test/test1

@@ -13,7 +13,7 @@ select * from grass_test1
 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 @@ select * from grass_test1
 
 X
 drop table grass_test1
-
-