From: Tomas Vondra Date: Thu, 20 Apr 2017 23:33:39 +0000 (+0200) Subject: Resolve trivial failures in update regression suite X-Git-Tag: XL_10_R1BETA1~357 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=804736c7cabe5b929a516dfd12f631f77bb777a8;p=postgres-xl.git Resolve trivial failures in update regression suite The failures were ordering-related, so simply fix the queries and expected results. --- diff --git a/src/test/regress/expected/update.out b/src/test/regress/expected/update.out index 03d6f29735..5b1559eef6 100644 --- a/src/test/regress/expected/update.out +++ b/src/test/regress/expected/update.out @@ -73,20 +73,20 @@ UPDATE update_test SET (c,b,a) = ('bugle', b+11, DEFAULT) WHERE c = 'foo'; SELECT * FROM update_test ORDER BY a, b, c; a | b | c -----+----+------- - 100 | 20 | - 100 | 21 | 10 | 31 | bugle 10 | 32 | bugle + 100 | 20 | + 100 | 21 | (4 rows) UPDATE update_test SET (c,b) = ('car', a+b), a = a + 1 WHERE a = 10; SELECT * FROM update_test ORDER BY a, b, c; a | b | c -----+----+----- - 100 | 20 | - 100 | 21 | 11 | 41 | car 11 | 42 | car + 100 | 20 | + 100 | 21 | (4 rows) -- fail, multi assignment to same column: @@ -142,13 +142,13 @@ LINE 1: UPDATE update_test AS t SET b = update_test.b + 10 WHERE t.a... HINT: Perhaps you meant to reference the table alias "t". -- Make sure that we can update to a TOASTed value. UPDATE update_test SET c = repeat('x', 10000) WHERE c = 'car'; -SELECT a, b, char_length(c) FROM update_test; +SELECT a, b, char_length(c) FROM update_test ORDER BY a; a | b | char_length ----+-----+------------- 21 | 101 | - | | 41 | 12 | 10000 42 | 12 | 10000 + | | (4 rows) -- Test ON CONFLICT DO UPDATE