Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit05428ad

Browse files
author
Thomas G. Lockhart
committed
Add tests for unary minus.
1 parente4b27f2 commit05428ad

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

‎src/test/regress/expected/int4.out

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,30 @@ five| f1| x
204204
|-2147483647|-1073741823
205205
(5 rows)
206206

207+
QUERY: SELECT -2+3 AS one;
208+
one
209+
---
210+
1
211+
(1 row)
212+
213+
QUERY: SELECT 4-2 AS two;
214+
two
215+
---
216+
2
217+
(1 row)
218+
219+
QUERY: SELECT 2- -1 AS three;
220+
three
221+
-----
222+
3
223+
(1 row)
224+
225+
QUERY: SELECT 2 - -2 AS four;
226+
four
227+
----
228+
4
229+
(1 row)
230+
207231
QUERY: SELECT '2'::int2 * '2'::int2 = '16'::int2 / '4'::int2 AS true;
208232
true
209233
----

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp