~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to scripts/db.test/test1

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
X
2
 
create table grass_test1 (i1 integer, d1 double precision, c1 varchar(20))
3
 
 
4
 
X
5
 
insert into grass_test1 values ( 1, 123.456, 'abcd' )
6
 
 
7
 
X
8
 
insert into grass_test1 values ( 2, null, 'xxx' )
 
2
CREATE TABLE grass_test1 (i1 INTEGER, d1 DOUBLE PRECISION, c1 VARCHAR(20))
 
3
 
 
4
X
 
5
INSERT INTO grass_test1 VALUES ( 1, 123.456, 'abcd' )
 
6
 
 
7
X
 
8
INSERT INTO grass_test1 VALUES ( 2, null, 'xxx' )
9
9
 
10
10
S
11
 
select * from grass_test1
 
11
SELECT * FROM grass_test1
12
12
1|123.456|abcd
13
13
2||xxx
14
14
 
15
15
S
16
 
select c1 from grass_test1 where d1 < 500 / 2 and i1 <> 2  and c1 ~ 'bc' 
 
16
SELECT c1 FROM grass_test1 WHERE d1 < 500 / 2 AND i1 <> 2  AND c1 LIKE '%bc%' 
17
17
abcd
18
18
 
19
19
X
20
 
insert into grass_test1 values ( 3, 0.0, '_\''_' )
21
 
 
22
 
X
23
 
alter table grass_test1 add column i2 integer
24
 
 
25
 
X
26
 
update grass_test1 set d1 = 18.6, i2 = 987  where i1 = 2
 
20
INSERT INTO grass_test1 VALUES ( 3, 0.0, '_\''_' )
 
21
 
 
22
X
 
23
ALTER TABLE grass_test1 ADD COLUMN i2 INTEGER
 
24
 
 
25
X
 
26
UPDATE grass_test1 SET d1 = 18.6, i2 = 987  WHERE i1 = 2
27
27
 
28
28
S
29
 
select * from grass_test1
 
29
SELECT * FROM grass_test1
30
30
1|123.456|abcd|
31
31
2|18.6|xxx|987
32
32
3|0|_\'_|
33
33
 
34
34
X
35
 
drop table grass_test1
36
 
 
37
 
 
 
35
DROP TABLE grass_test1