From: Daniele Varrazzo Date: Mon, 11 Jan 2021 14:52:55 +0000 (+0100) Subject: Added comment to remember what the array structure is X-Git-Tag: 3.0.dev0~185 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03720fdb69e65e8896ab4062a924db9d4cf96e18;p=thirdparty%2Fpsycopg.git Added comment to remember what the array structure is --- 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")