--- /dev/null
+--
+-- UPDATE ... SET
= DEFAULT;
+--
+CREATE TABLE update_test (
+ a INT DEFAULT 10,
+ b INT
+);
+INSERT INTO update_test VALUES (5, 10);
+INSERT INTO update_test VALUES (10, 15);
+SELECT * FROM update_test;
+ a | b
+----+----
+ 5 | 10
+ 10 | 15
+(2 rows)
+
+UPDATE update_test SET a = DEFAULT, b = DEFAULT;
+SELECT * FROM update_test;
+ a | b
+----+---
+ 10 |
+ 10 |
+(2 rows)
+
+DROP TABLE update_test;
# ----------
# The fourth group of parallel test
# ----------
-test: select_into select_distinct select_distinct_on select_implicit select_having subselect union case join aggregates transactions random portals arrays btree_index hash_index
+test: select_into select_distinct select_distinct_on select_implicit select_having subselect union case join aggregates transactions random portals arrays btree_index hash_index update
test: privileges
test: misc
-# $Header: /cvsroot/pgsql/src/test/regress/serial_schedule,v 1.20 2003/07/01 19:10:53 tgl Exp $
+# $Header: /cvsroot/pgsql/src/test/regress/serial_schedule,v 1.21 2003/08/26 18:32:23 momjian Exp $
# This should probably be in an order similar to parallel_schedule.
test: boolean
test: char
test: arrays
test: btree_index
test: hash_index
+test: update
test: privileges
test: misc
test: select_views
--- /dev/null
+--
+-- UPDATE ... SET
= DEFAULT;
+--
+
+CREATE TABLE update_test (
+ a INT DEFAULT 10,
+ b INT
+);
+
+INSERT INTO update_test VALUES (5, 10);
+INSERT INTO update_test VALUES (10, 15);
+
+SELECT * FROM update_test;
+
+UPDATE update_test SET a = DEFAULT, b = DEFAULT;
+
+SELECT * FROM update_test;
+
+DROP TABLE update_test;
\ No newline at end of file