@@ -450,7 +450,7 @@ def test_postgres_with_index_col(postgres_url: str) -> None:
450450
451451
452452def test_postgres_types_binary (postgres_url : str ) -> None :
453- query = "SELECT test_date, test_timestamp, test_timestamptz, test_int16, test_int64, test_float32, test_numeric, test_bpchar, test_char, test_varchar, test_uuid, test_time, test_json, test_jsonb, test_bytea, test_enum, test_f4array, test_f8array, test_narray, test_i2array, test_i4array, test_i8array, test_citext, test_ltree, test_lquery, test_ltxtquery FROM test_types"
453+ query = "SELECT test_date, test_timestamp, test_timestamptz, test_int16, test_int64, test_float32, test_numeric, test_bpchar, test_char, test_varchar, test_uuid, test_time, test_json, test_jsonb, test_bytea, test_enum, test_f4array, test_f8array, test_narray, test_boolarray, test_i2array, test_i4array, test_i8array, test_citext, test_ltree, test_lquery, test_ltxtquery FROM test_types"
454454 df = read_sql (postgres_url , query )
455455 expected = pd .DataFrame (
456456 index = range (4 ),
@@ -538,6 +538,9 @@ def test_postgres_types_binary(postgres_url: str) -> None:
538538 "test_narray" : pd .Series (
539539 [[], None , [521.34 ], [0.12 , 333.33 , 22.22 ]], dtype = "object"
540540 ),
541+ "test_boolarray" : pd .Series (
542+ [[True , True ], [], [False , False ], None ], dtype = "object" ,
543+ ),
541544 "test_i2array" : pd .Series (
542545 [[- 1 , 0 , 1 ], [], [- 32768 , 32767 ], None ], dtype = "object"
543546 ),
@@ -560,7 +563,7 @@ def test_postgres_types_binary(postgres_url: str) -> None:
560563
561564
562565def test_postgres_types_csv (postgres_url : str ) -> None :
563- query = "SELECT test_date, test_timestamp, test_timestamptz, test_int16, test_int64, test_float32, test_numeric, test_bpchar, test_char, test_varchar, test_uuid, test_time, test_json, test_jsonb, test_bytea, test_enum::text, test_f4array, test_f8array, test_narray, test_i2array, test_i4array, test_i8array, test_citext, test_ltree FROM test_types"
566+ query = "SELECT test_date, test_timestamp, test_timestamptz, test_int16, test_int64, test_float32, test_numeric, test_bpchar, test_char, test_varchar, test_uuid, test_time, test_json, test_jsonb, test_bytea, test_enum::text, test_f4array, test_f8array, test_narray, test_boolarray, test_i2array, test_i4array, test_i8array, test_citext, test_ltree FROM test_types"
564567 df = read_sql (postgres_url , query , protocol = "csv" )
565568 expected = pd .DataFrame (
566569 index = range (4 ),
@@ -648,6 +651,9 @@ def test_postgres_types_csv(postgres_url: str) -> None:
648651 "test_narray" : pd .Series (
649652 [[], None , [521.34 ], [0.12 , 333.33 , 22.22 ]], dtype = "object"
650653 ),
654+ "test_boolarray" : pd .Series (
655+ [[True , True ], [], [False , False ], None ], dtype = "object" ,
656+ ),
651657 "test_i2array" : pd .Series (
652658 [[- 1 , 0 , 1 ], [], [- 32768 , 32767 ], None ], dtype = "object"
653659 ),
@@ -666,7 +672,7 @@ def test_postgres_types_csv(postgres_url: str) -> None:
666672
667673
668674def test_postgres_types_cursor (postgres_url : str ) -> None :
669- query = "SELECT test_date, test_timestamp, test_timestamptz, test_int16, test_int64, test_float32, test_numeric, test_bpchar, test_char, test_varchar, test_uuid, test_time, test_json, test_jsonb, test_bytea, test_enum::text, test_f4array, test_f8array, test_narray, test_i2array, test_i4array, test_i8array, test_citext, test_ltree FROM test_types"
675+ query = "SELECT test_date, test_timestamp, test_timestamptz, test_int16, test_int64, test_float32, test_numeric, test_bpchar, test_char, test_varchar, test_uuid, test_time, test_json, test_jsonb, test_bytea, test_enum::text, test_f4array, test_f8array, test_narray, test_boolarray, test_i2array, test_i4array, test_i8array, test_citext, test_ltree FROM test_types"
670676 df = read_sql (postgres_url , query , protocol = "cursor" )
671677 expected = pd .DataFrame (
672678 index = range (4 ),
@@ -754,6 +760,9 @@ def test_postgres_types_cursor(postgres_url: str) -> None:
754760 "test_narray" : pd .Series (
755761 [[], None , [521.34 ], [0.12 , 333.33 , 22.22 ]], dtype = "object"
756762 ),
763+ "test_boolarray" : pd .Series (
764+ [[True , True ], [], [False , False ], None ], dtype = "object" ,
765+ ),
757766 "test_i2array" : pd .Series (
758767 [[- 1 , 0 , 1 ], [], [- 32768 , 32767 ], None ], dtype = "object"
759768 ),
@@ -772,7 +781,7 @@ def test_postgres_types_cursor(postgres_url: str) -> None:
772781
773782
774783def test_postgres_types_simple (postgres_url : str ) -> None :
775- query = "SELECT test_date, test_timestamp, test_timestamptz, test_int16, test_int64, test_float32, test_numeric, test_bpchar, test_char, test_varchar, test_uuid, test_time, test_bytea, test_enum, test_f4array, test_f8array, test_narray, test_i2array, test_i4array, test_i8array FROM test_types"
784+ query = "SELECT test_date, test_timestamp, test_timestamptz, test_int16, test_int64, test_float32, test_numeric, test_bpchar, test_char, test_varchar, test_uuid, test_time, test_bytea, test_enum, test_f4array, test_f8array, test_narray, test_boolarray, test_i2array, test_i4array, test_i8array FROM test_types"
776785 df = read_sql (postgres_url , query , protocol = "simple" )
777786 expected = pd .DataFrame (
778787 index = range (4 ),
@@ -842,6 +851,9 @@ def test_postgres_types_simple(postgres_url: str) -> None:
842851 "test_narray" : pd .Series (
843852 [[], None , [521.34 ], [0.12 , 333.33 , 22.22 ]], dtype = "object"
844853 ),
854+ "test_boolarray" : pd .Series (
855+ [[True , True ], [], [False , False ], None ], dtype = "object" ,
856+ ),
845857 "test_i2array" : pd .Series (
846858 [[- 1 , 0 , 1 ], [], [- 32768 , 32767 ], None ], dtype = "object"
847859 ),
0 commit comments