@@ -287,7 +287,7 @@ def test_datetime_query_param(trino_connection):
287
287
rows = cur .fetchall ()
288
288
289
289
assert rows [0 ][0 ] == params
290
- assert cur .description [0 ][1 ] == "timestamp"
290
+ assert cur .description [0 ][1 ] == "timestamp(6) "
291
291
292
292
293
293
def test_datetime_with_utc_time_zone_query_param (trino_connection ):
@@ -299,7 +299,7 @@ def test_datetime_with_utc_time_zone_query_param(trino_connection):
299
299
rows = cur .fetchall ()
300
300
301
301
assert rows [0 ][0 ] == params
302
- assert cur .description [0 ][1 ] == "timestamp with time zone"
302
+ assert cur .description [0 ][1 ] == "timestamp(6) with time zone"
303
303
304
304
305
305
def test_datetime_with_numeric_offset_time_zone_query_param (trino_connection ):
@@ -313,7 +313,7 @@ def test_datetime_with_numeric_offset_time_zone_query_param(trino_connection):
313
313
rows = cur .fetchall ()
314
314
315
315
assert rows [0 ][0 ] == params
316
- assert cur .description [0 ][1 ] == "timestamp with time zone"
316
+ assert cur .description [0 ][1 ] == "timestamp(6) with time zone"
317
317
318
318
319
319
def test_datetime_with_named_time_zone_query_param (trino_connection ):
@@ -325,7 +325,7 @@ def test_datetime_with_named_time_zone_query_param(trino_connection):
325
325
rows = cur .fetchall ()
326
326
327
327
assert rows [0 ][0 ] == params
328
- assert cur .description [0 ][1 ] == "timestamp with time zone"
328
+ assert cur .description [0 ][1 ] == "timestamp(6) with time zone"
329
329
330
330
331
331
def test_datetime_with_trailing_zeros (trino_connection ):
@@ -463,6 +463,7 @@ def test_time_query_param(trino_connection):
463
463
rows = cur .fetchall ()
464
464
465
465
assert rows [0 ][0 ] == params
466
+ assert cur .description [0 ][1 ] == "time(6)"
466
467
467
468
468
469
def test_time_with_named_time_zone_query_param (trino_connection ):
@@ -492,6 +493,7 @@ def test_time(trino_connection):
492
493
rows = cur .fetchall ()
493
494
494
495
assert rows [0 ][0 ] == time (1 , 2 , 3 , 456000 )
496
+ assert cur .description [0 ][1 ] == "time(3)"
495
497
496
498
497
499
def test_null_time (trino_connection ):
@@ -512,6 +514,7 @@ def test_time_with_time_zone_negative_offset(trino_connection):
512
514
tz = timezone (- timedelta (hours = 8 , minutes = 0 ))
513
515
514
516
assert rows [0 ][0 ] == time (1 , 2 , 3 , 456000 , tzinfo = tz )
517
+ assert cur .description [0 ][1 ] == "time(3) with time zone"
515
518
516
519
517
520
def test_time_with_time_zone_positive_offset (trino_connection ):
@@ -523,6 +526,7 @@ def test_time_with_time_zone_positive_offset(trino_connection):
523
526
tz = timezone (timedelta (hours = 8 , minutes = 0 ))
524
527
525
528
assert rows [0 ][0 ] == time (1 , 2 , 3 , 456000 , tzinfo = tz )
529
+ assert cur .description [0 ][1 ] == "time(3) with time zone"
526
530
527
531
528
532
def test_null_date_with_time_zone (trino_connection ):
0 commit comments