projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4b27f2
)
Add tests for unary minus.
author
Thomas G. Lockhart
Sat, 13 Sep 1997 03:20:18 +0000
(
03:20
+0000)
committer
Thomas G. Lockhart
Sat, 13 Sep 1997 03:20:18 +0000
(
03:20
+0000)
src/test/regress/expected/int4.out
patch
|
blob
|
blame
|
history
diff --git
a/src/test/regress/expected/int4.out
b/src/test/regress/expected/int4.out
index ed3b9f2d0964e80ace6657f8d42f624877c33256..5abaae14552123038c5a75052605aee9e1db2e97 100644
(file)
--- a/
src/test/regress/expected/int4.out
+++ b/
src/test/regress/expected/int4.out
@@
-204,6
+204,30
@@
five| f1| x
|-2147483647|-1073741823
(5 rows)
+QUERY: SELECT -2+3 AS one;
+one
+---
+ 1
+(1 row)
+
+QUERY: SELECT 4-2 AS two;
+two
+---
+ 2
+(1 row)
+
+QUERY: SELECT 2- -1 AS three;
+three
+-----
+ 3
+(1 row)
+
+QUERY: SELECT 2 - -2 AS four;
+four
+----
+ 4
+(1 row)
+
QUERY: SELECT '2'::int2 * '2'::int2 = '16'::int2 / '4'::int2 AS true;
true
----