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

Commitaeecb4e

Browse files
author
Thomas G. Lockhart
committed
Add a few tests for unary minus syntax.
1 parentbc85dbf commitaeecb4e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

‎src/test/regress/sql/int4.sql

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,19 @@ SELECT '' AS five, i.f1, i.f1 / '2'::int2 AS x FROM INT4_TBL i;
7373

7474
SELECT''AS five,i.f1,i.f1/'2'::int4AS xFROM INT4_TBL i;
7575

76-
7776
--
7877
-- more complex expressions
7978
--
79+
80+
-- variations on unary minus parsing
81+
SELECT-2+3AS one;
82+
83+
SELECT4-2AS two;
84+
85+
SELECT2--1AS three;
86+
87+
SELECT2--2AS four;
88+
8089
SELECT'2'::int2*'2'::int2='16'::int2/'4'::int2AS true;
8190

8291
SELECT'2'::int4*'2'::int2='16'::int2/'4'::int4AS true;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp