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

Commit007f812

Browse files
committed
Update alternate float8 output files to match current float8.sql.
1 parent738a9ca commit007f812

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

‎src/test/regress/expected/float8-exp-three-digits.out

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,19 @@ SELECT '' AS five, f.f1, f.f1 % AS round_f1
149149
| 1.2345678901234e-200 | 0
150150
(5 rows)
151151

152+
SELECT sqrt(float8 '64') AS eight;
153+
eight
154+
-------
155+
8
156+
(1 row)
157+
152158
-- square root
159+
SELECT |/ float8 '64' AS eight;
160+
eight
161+
-------
162+
8
163+
(1 row)
164+
153165
SELECT '' AS three, f.f1, |/f.f1 AS sqrt_f1
154166
FROM FLOAT8_TBL f
155167
WHERE f.f1 > '0.0';
@@ -172,6 +184,12 @@ SELECT '' AS three, f.f1, exp(ln(f.f1)) AS exp_ln_f1
172184
(3 rows)
173185

174186
-- cube root
187+
SELECT ||/ float8 '27' AS three;
188+
three
189+
-------
190+
3
191+
(1 row)
192+
175193
SELECT '' AS five, f.f1, ||/f.f1 AS cbrt_f1 FROM FLOAT8_TBL f;
176194
five | f1 | cbrt_f1
177195
------+----------------------+-----------------------
@@ -217,7 +235,7 @@ SELECT '' AS five, FLOAT8_TBL.*;
217235
| -1.2345678901234e-200
218236
(5 rows)
219237

220-
-- test for over andunder flow
238+
-- test for over- andunderflow
221239
INSERT INTO FLOAT8_TBL(f1) VALUES ('10e400');
222240
ERROR: Input '10e400' is out of range for float8
223241
INSERT INTO FLOAT8_TBL(f1) VALUES ('-10e400');

‎src/test/regress/expected/float8-fp-exception.out

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,19 @@ SELECT '' AS five, f.f1, f.f1 % AS round_f1
149149
| 1.2345678901234e-200 | 0
150150
(5 rows)
151151

152+
SELECT sqrt(float8 '64') AS eight;
153+
eight
154+
-------
155+
8
156+
(1 row)
157+
152158
-- square root
159+
SELECT |/ float8 '64' AS eight;
160+
eight
161+
-------
162+
8
163+
(1 row)
164+
153165
SELECT '' AS three, f.f1, |/f.f1 AS sqrt_f1
154166
FROM FLOAT8_TBL f
155167
WHERE f.f1 > '0.0';
@@ -172,6 +184,12 @@ SELECT '' AS three, f.f1, exp(ln(f.f1)) AS exp_ln_f1
172184
(3 rows)
173185

174186
-- cube root
187+
SELECT ||/ float8 '27' AS three;
188+
three
189+
-------
190+
3
191+
(1 row)
192+
175193
SELECT '' AS five, f.f1, ||/f.f1 AS cbrt_f1 FROM FLOAT8_TBL f;
176194
five | f1 | cbrt_f1
177195
------+----------------------+----------------------
@@ -217,7 +235,7 @@ SELECT '' AS five, FLOAT8_TBL.*;
217235
| -1.2345678901234e-200
218236
(5 rows)
219237

220-
-- test for over andunder flow
238+
-- test for over- andunderflow
221239
INSERT INTO FLOAT8_TBL(f1) VALUES ('10e400');
222240
ERROR: Input '10e400' is out of range for float8
223241
INSERT INTO FLOAT8_TBL(f1) VALUES ('-10e400');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp