Skip to content

Commit adf5aec

Browse files
authored
Updated schedule file by adding money/smallmoney and bit arithmetic tests (#3867)
* Updated schedule file by adding money/smallmoney and bit arithmetic tests Added the money/smallmoney and bit arithmetic and math functions tests to all the upgrade schedule files since it was missed as part of PR-3797, commit: 12a8743 Signed-off-by: Ayush Shah <ayushdsh@amazon.com>
1 parent 12a8743 commit adf5aec

39 files changed

+1108
-338
lines changed

test/JDBC/expected/money_smallmoney-vu-cleanup.out

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -48,33 +48,3 @@ GO
4848

4949
DROP TABLE MoneyTestTable1
5050
GO
51-
52-
DROP VIEW bitsmallmoneypl_vu;
53-
GO
54-
55-
DROP VIEW bitsmallmoneymi_vu;
56-
GO
57-
58-
DROP VIEW smallmoneybitpl_vu;
59-
GO
60-
61-
DROP VIEW smallmoneybitmi_vu;
62-
GO
63-
64-
DROP VIEW floormaxmoney_vu;
65-
GO
66-
67-
DROP VIEW ceilingminmoney_vu;
68-
GO
69-
70-
DROP VIEW powersmallmoneyfail_vu;
71-
GO
72-
73-
DROP VIEW powermoneyfail_vu;
74-
GO
75-
76-
DROP VIEW powermoney_vu;
77-
GO
78-
79-
DROP VIEW powersmallmoney_vu;
80-
GO

test/JDBC/expected/money_smallmoney-vu-prepare.out

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,6 @@ GO
2323
CREATE VIEW int4smallmoneymul_vu AS SELECT cast(100 AS INT) * cast(123.45 AS SMALLMONEY) AS result;
2424
GO
2525

26-
CREATE VIEW bitsmallmoneypl_vu AS SELECT cast(100 AS BIT) + cast(123.45 AS SMALLMONEY) AS result;
27-
GO
28-
29-
CREATE VIEW bitsmallmoneymi_vu AS SELECT cast(100 AS BIT) - cast(123.45 AS SMALLMONEY) AS result;
30-
GO
31-
32-
CREATE VIEW smallmoneybitpl_vu AS SELECT cast(123.45 AS SMALLMONEY) + cast(100 AS BIT) AS result;
33-
GO
34-
35-
CREATE VIEW smallmoneybitmi_vu AS SELECT cast(123.45 AS SMALLMONEY) - cast(100 AS BIT) AS result;
36-
GO
37-
38-
CREATE VIEW floormaxmoney_vu AS SELECT floor(cast(922337203685477.5807 as MONEY)) AS result;
39-
GO
40-
41-
CREATE VIEW ceilingminmoney_vu AS SELECT ceiling(cast(-922337203685477.5807 as MONEY)) AS result;
42-
GO
43-
44-
CREATE VIEW powermoney_vu AS SELECT POWER(cast(-100.5807 as MONEY), 2) AS result;
45-
GO
46-
47-
CREATE VIEW powermoneyfail_vu AS SELECT POWER(cast(-92233720368.5807 as MONEY), 2) AS result;
48-
GO
49-
50-
CREATE VIEW powersmallmoney_vu AS SELECT POWER(cast(-100.5807 as SMALLMONEY), 2) AS result;
51-
GO
52-
53-
CREATE VIEW powersmallmoneyfail_vu AS SELECT POWER(cast(-92233720368.5807 as SMALLMONEY), 2) AS result;
54-
GO
55-
5626
CREATE FUNCTION principalsquared_func(@amount sys.MONEY)
5727
RETURNS sys.MONEY
5828
AS

test/JDBC/expected/money_smallmoney-vu-verify.out

Lines changed: 12 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -80,86 +80,6 @@ smallmoney
8080
~~END~~
8181

8282

83-
SELECT * FROM dbo.bitsmallmoneypl_vu;
84-
GO
85-
~~START~~
86-
smallmoney
87-
124.4500
88-
~~END~~
89-
90-
91-
SELECT * FROM dbo.bitsmallmoneymi_vu;
92-
GO
93-
~~START~~
94-
smallmoney
95-
-122.4500
96-
~~END~~
97-
98-
99-
SELECT * FROM dbo.smallmoneybitpl_vu;
100-
GO
101-
~~START~~
102-
smallmoney
103-
124.4500
104-
~~END~~
105-
106-
107-
SELECT * FROM dbo.smallmoneybitmi_vu;
108-
GO
109-
~~START~~
110-
smallmoney
111-
122.4500
112-
~~END~~
113-
114-
115-
SELECT * FROM dbo.floormaxmoney_vu;
116-
GO
117-
~~START~~
118-
money
119-
922337203685477.0000
120-
~~END~~
121-
122-
123-
SELECT * FROM dbo.ceilingminmoney_vu;
124-
GO
125-
~~START~~
126-
money
127-
-922337203685477.0000
128-
~~END~~
129-
130-
131-
SELECT * FROM dbo.powersmallmoney_vu;
132-
GO
133-
~~START~~
134-
money
135-
10116.4772
136-
~~END~~
137-
138-
139-
SELECT * FROM dbo.powermoney_vu;
140-
GO
141-
~~START~~
142-
money
143-
10116.4772
144-
~~END~~
145-
146-
147-
SELECT * FROM dbo.powersmallmoneyfail_vu;
148-
GO
149-
~~ERROR (Code: 33557097)~~
150-
151-
~~ERROR (Message: FIXEDDECIMAL field overflow)~~
152-
153-
154-
SELECT * FROM dbo.powermoneyfail_vu;
155-
GO
156-
~~START~~
157-
money
158-
~~ERROR (Code: 8115)~~
159-
160-
~~ERROR (Message: bigint out of range)~~
161-
162-
16383
SELECT * FROM dbo.int4smallmoney_func();
16484
GO
16585
~~START~~
@@ -241,7 +161,7 @@ Index Scan using idx_cost_smallmoneymoney_smallm763569c9206bb1e36c4670199725a26c
241161

242162
~~START~~
243163
text
244-
Babelfish T-SQL Batch Parsing Time: 6.340 ms
164+
Babelfish T-SQL Batch Parsing Time: 6.998 ms
245165
~~END~~
246166

247167

@@ -257,7 +177,7 @@ Aggregate
257177

258178
~~START~~
259179
text
260-
Babelfish T-SQL Batch Parsing Time: 19.752 ms
180+
Babelfish T-SQL Batch Parsing Time: 19.180 ms
261181
~~END~~
262182

263183

@@ -273,7 +193,7 @@ Aggregate
273193

274194
~~START~~
275195
text
276-
Babelfish T-SQL Batch Parsing Time: 3.664 ms
196+
Babelfish T-SQL Batch Parsing Time: 3.733 ms
277197
~~END~~
278198

279199

@@ -289,7 +209,7 @@ Aggregate
289209

290210
~~START~~
291211
text
292-
Babelfish T-SQL Batch Parsing Time: 0.682 ms
212+
Babelfish T-SQL Batch Parsing Time: 0.811 ms
293213
~~END~~
294214

295215

@@ -305,7 +225,7 @@ Aggregate
305225

306226
~~START~~
307227
text
308-
Babelfish T-SQL Batch Parsing Time: 2.655 ms
228+
Babelfish T-SQL Batch Parsing Time: 2.918 ms
309229
~~END~~
310230

311231

@@ -320,7 +240,7 @@ Index Only Scan using idx_cost_smallmoneymoney_smallm763569c9206bb1e36c467019972
320240

321241
~~START~~
322242
text
323-
Babelfish T-SQL Batch Parsing Time: 0.241 ms
243+
Babelfish T-SQL Batch Parsing Time: 0.515 ms
324244
~~END~~
325245

326246

@@ -335,7 +255,7 @@ Index Scan using idx_cost_smallmoneymoney_smallm763569c9206bb1e36c4670199725a26c
335255

336256
~~START~~
337257
text
338-
Babelfish T-SQL Batch Parsing Time: 2.618 ms
258+
Babelfish T-SQL Batch Parsing Time: 3.336 ms
339259
~~END~~
340260

341261

@@ -350,7 +270,7 @@ Index Scan using idx_cost_moneymoney_smallmoney_561673fc5dd7f27d48118a464f7209db
350270

351271
~~START~~
352272
text
353-
Babelfish T-SQL Batch Parsing Time: 0.090 ms
273+
Babelfish T-SQL Batch Parsing Time: 0.088 ms
354274
~~END~~
355275

356276

@@ -382,7 +302,7 @@ Aggregate
382302

383303
~~START~~
384304
text
385-
Babelfish T-SQL Batch Parsing Time: 0.587 ms
305+
Babelfish T-SQL Batch Parsing Time: 0.583 ms
386306
~~END~~
387307

388308

@@ -414,7 +334,7 @@ Aggregate
414334

415335
~~START~~
416336
text
417-
Babelfish T-SQL Batch Parsing Time: 0.134 ms
337+
Babelfish T-SQL Batch Parsing Time: 0.135 ms
418338
~~END~~
419339

420340

@@ -429,7 +349,7 @@ Index Only Scan using idx_cost_moneymoney_smallmoney_561673fc5dd7f27d48118a464f7
429349

430350
~~START~~
431351
text
432-
Babelfish T-SQL Batch Parsing Time: 0.131 ms
352+
Babelfish T-SQL Batch Parsing Time: 0.132 ms
433353
~~END~~
434354

435355

@@ -444,7 +364,7 @@ Index Scan using idx_cost_moneymoney_smallmoney_561673fc5dd7f27d48118a464f7209db
444364

445365
~~START~~
446366
text
447-
Babelfish T-SQL Batch Parsing Time: 0.125 ms
367+
Babelfish T-SQL Batch Parsing Time: 0.122 ms
448368
~~END~~
449369

450370

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
DROP VIEW bitfloatpl_vu;
2+
GO
3+
4+
DROP VIEW bitfloatmi_vu;
5+
GO
6+
7+
DROP VIEW bitfloatmul_vu;
8+
GO
9+
10+
DROP VIEW bitfloatdiv_vu;
11+
GO
12+
13+
DROP VIEW floatbitpl_vu;
14+
GO
15+
16+
DROP VIEW floatbitmi_vu;
17+
GO
18+
19+
DROP VIEW floatbitmul_vu;
20+
GO
21+
22+
DROP VIEW floatbitdiv_vu;
23+
GO
24+
25+
DROP VIEW floatbitdivfail_vu;
26+
GO
27+
28+
DROP VIEW bitbigintpl_vu;
29+
GO
30+
31+
DROP VIEW bitbigintmi_vu;
32+
GO
33+
34+
DROP VIEW bitbigintmul_vu;
35+
GO
36+
37+
DROP VIEW bitbigintdiv_vu;
38+
GO
39+
40+
DROP VIEW bitbigintdivfail_vu;
41+
GO
42+
43+
DROP VIEW bitnumericpl_vu;
44+
GO
45+
46+
DROP VIEW bitnumericmi_vu;
47+
GO
48+
49+
DROP VIEW bitnumericmul_vu;
50+
GO
51+
52+
DROP VIEW bitnumericdiv_vu;
53+
GO
54+
55+
DROP VIEW bitfloatdivfail_vu;
56+
GO
57+
58+
DROP VIEW bitsmallmoneymul_vu
59+
GO
60+
61+
DROP VIEW bitsmallmoneydiv_vu
62+
GO
63+
64+
DROP VIEW smallmoneybitmul_vu
65+
GO
66+
67+
DROP VIEW smallmoneybitdiv_vu
68+
GO
69+
70+
DROP VIEW bitsmallmoneydivfail_vu
71+
GO
72+
73+
DROP VIEW smallmoneybitdivfail_vu
74+
GO
75+
76+
DROP VIEW bitsmallmoneypl_vu;
77+
GO
78+
79+
DROP VIEW bitsmallmoneymi_vu;
80+
GO
81+
82+
DROP VIEW smallmoneybitpl_vu;
83+
GO
84+
85+
DROP VIEW smallmoneybitmi_vu;
86+
GO
87+
88+
DROP VIEW floormaxmoney_vu;
89+
GO
90+
91+
DROP VIEW ceilingminmoney_vu
92+
GO
93+
94+
DROP VIEW powermoney_vu;
95+
GO
96+
97+
DROP VIEW powermoneyfail_vu;
98+
GO
99+
100+
DROP VIEW powersmallmoney_vu;
101+
GO
102+
103+
DROP VIEW powersmallmoneyfail_vu;
104+
GO

0 commit comments

Comments
 (0)