From 03720fdb69e65e8896ab4062a924db9d4cf96e18 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Mon, 11 Jan 2021 15:52:55 +0100 Subject: [PATCH] Added comment to remember what the array structure is --- psycopg3/psycopg3/types/array.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/psycopg3/psycopg3/types/array.py b/psycopg3/psycopg3/types/array.py index d9b6fa616..e7bda5d79 100644 --- a/psycopg3/psycopg3/types/array.py +++ b/psycopg3/psycopg3/types/array.py @@ -226,8 +226,8 @@ class ArrayLoader(BaseArrayLoader): _re_unescape = re.compile(br"\\(.)") -_struct_head = struct.Struct("!III") -_struct_dim = struct.Struct("!II") +_struct_head = struct.Struct("!III") # ndims, hasnull, elem oid +_struct_dim = struct.Struct("!II") # dim, lower bound _struct_len = struct.Struct("!i") -- 2.47.2