sqllogictest
Check-in [18a6b7f09c]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Update some evidence marks in slt_lang_dropview.test to account for updated documentation text.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:18a6b7f09c104a726efcd1101eeb3495eb0b4e20
User & Date: dan 2010-11-30 09:50:12
Context
2010-12-06
21:13
Update the built-in SQLite amalgamation to a version 3.7.4 release candidate. check-in: d8af10c23b user: drh tags: trunk
2010-11-30
09:50
Update some evidence marks in slt_lang_dropview.test to account for updated documentation text. check-in: 18a6b7f09c user: dan tags: trunk
2010-09-25
04:03
Evidence tests for aggregate functions. check-in: 1ab2242b4f user: shaneh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to test/evidence/slt_lang_dropview.test.

15
16
17
18
19
20
21
22



23
24
25
26
27
28
29
..
34
35
36
37
38
39
40
41
42

43
44
45
46
47
48
49
50
51
52
53
54
55
statement ok
CREATE INDEX t1i1 ON t1(x)


# EVIDENCE-OF: R-27002-52307 The DROP VIEW statement removes a view
# created by the CREATE VIEW statement.

# EVIDENCE-OF: R-31903-25381 The name specified is the view name.




statement ok
CREATE VIEW view1 AS SELECT x FROM t1 WHERE x>0

statement ok
DROP VIEW view1

................................................................................
# never existed
statement error
DROP VIEW viewX

statement ok
CREATE VIEW view2 AS SELECT x FROM t1 WHERE x=0

# EVIDENCE-OF: R-25468-11728 It is removed from the database schema, but
# no actual data in the underlying base tables is modified.


query I rowsort label-0
SELECT x FROM view2
----
0

statement ok
DROP VIEW view2

query I rowsort label-0
SELECT x FROM t1 WHERE x=0
----
0







|
>
>
>







 







|
|
>













15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
..
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
statement ok
CREATE INDEX t1i1 ON t1(x)


# EVIDENCE-OF: R-27002-52307 The DROP VIEW statement removes a view
# created by the CREATE VIEW statement.

# EVIDENCE-OF: R-27882-59129 The view to drop is identified by the
# view-name and optional database-name specified as part of the DROP
# VIEW statement. This reference is resolved using the standard
# procedure for object resolution.

statement ok
CREATE VIEW view1 AS SELECT x FROM t1 WHERE x>0

statement ok
DROP VIEW view1

................................................................................
# never existed
statement error
DROP VIEW viewX

statement ok
CREATE VIEW view2 AS SELECT x FROM t1 WHERE x=0

# EVIDENCE-OF: R-00359-41639 The view definition is removed from the
# database schema, but no actual data in the underlying base tables is
# modified.

query I rowsort label-0
SELECT x FROM view2
----
0

statement ok
DROP VIEW view2

query I rowsort label-0
SELECT x FROM t1 WHERE x=0
----
0