@@ -187,7 +187,8 @@ mod tests {
187
187
'{\" key\" : \" value\" }'::JSON as json,
188
188
'{\" key\" : \" value\" }'::JSONB as jsonb,
189
189
age('2024-03-14'::timestamp, '2024-01-01'::timestamp) as age_interval,
190
- justify_interval(interval '1 year 2 months 3 days') as justified_interval" ,
190
+ justify_interval(interval '1 year 2 months 3 days') as justified_interval,
191
+ 1234.56::MONEY as money_val" ,
191
192
)
192
193
. fetch_one ( & mut c)
193
194
. await ?;
@@ -211,7 +212,8 @@ mod tests {
211
212
"json" : { "key" : "value" } ,
212
213
"jsonb" : { "key" : "value" } ,
213
214
"age_interval" : "2 mons 13 days" ,
214
- "justified_interval" : "1 year 2 mons 3 days"
215
+ "justified_interval" : "1 year 2 mons 3 days" ,
216
+ "money_val" : 1234.56
215
217
} ) ,
216
218
) ;
217
219
Ok ( ( ) )
@@ -366,7 +368,9 @@ mod tests {
366
368
CAST('2024-03-14 13:14:15' AS DATETIME2) as datetime2,
367
369
CAST('2024-03-14 13:14:15 +02:00' AS DATETIMEOFFSET) as datetimeoffset,
368
370
N'Unicode String' as nvarchar,
369
- 'ASCII String' as varchar" ,
371
+ 'ASCII String' as varchar,
372
+ CAST(1234.56 AS MONEY) as money_val,
373
+ CAST(12.34 AS SMALLMONEY) as small_money_val" ,
370
374
)
371
375
. fetch_one ( & mut c)
372
376
. await ?;
@@ -391,6 +395,8 @@ mod tests {
391
395
"datetimeoffset" : "2024-03-14T13:14:15+02:00" ,
392
396
"nvarchar" : "Unicode String" ,
393
397
"varchar" : "ASCII String" ,
398
+ "money_val" : 1234.56 ,
399
+ "small_money_val" : 12.34
394
400
} ) ,
395
401
) ;
396
402
Ok ( ( ) )
0 commit comments