2 -- Regression Test for TRUNCATE
8 CREATE TABLE julio_claudians (name text, birth_date date);
9 SECURITY LABEL ON TABLE julio_claudians IS 'system_u:object_r:sepgsql_regtest_foo_table_t:s0';
10 INSERT INTO julio_claudians VALUES ('Augustus', 'September 23, 63 BC'), ('Tiberius', 'November 16, 42 BC'), ('Caligula', 'August 31, 0012'), ('Claudius', 'August 1, 0010'), ('Nero', 'December 15, 0037');
12 CREATE TABLE flavians (name text, birth_date date);
13 SECURITY LABEL ON TABLE flavians IS 'system_u:object_r:sepgsql_table_t:s0';
15 INSERT INTO flavians VALUES ('Vespasian', 'November 17, 0009'), ('Titus', 'December 30, 0039'), ('Domitian', 'October 24, 0051');
17 SELECT * from julio_claudians;
18 SELECT * from flavians;
20 TRUNCATE TABLE julio_claudians; -- ok
21 TRUNCATE TABLE flavians; -- failed
23 SELECT * from julio_claudians;
24 SELECT * from flavians;