From 1959c1b59f05815597d290288f60940fbc3895e2 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Wed, 30 Dec 2020 18:53:19 +0100 Subject: [PATCH] Don't convert fformat and binary_tuples to Format in C pq wrapper --- psycopg3_c/psycopg3_c/pq/pgresult.pyx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/psycopg3_c/psycopg3_c/pq/pgresult.pyx b/psycopg3_c/psycopg3_c/pq/pgresult.pyx index e4ed5ada1..4f6479a9e 100644 --- a/psycopg3_c/psycopg3_c/pq/pgresult.pyx +++ b/psycopg3_c/psycopg3_c/pq/pgresult.pyx @@ -70,8 +70,8 @@ cdef class PGresult: def ftablecol(self, int column_number) -> int: return libpq.PQftablecol(self.pgresult_ptr, column_number) - def fformat(self, int column_number) -> Format: - return Format(libpq.PQfformat(self.pgresult_ptr, column_number)) + def fformat(self, int column_number) -> int: + return libpq.PQfformat(self.pgresult_ptr, column_number) def ftype(self, int column_number) -> int: return libpq.PQftype(self.pgresult_ptr, column_number) @@ -83,8 +83,8 @@ cdef class PGresult: return libpq.PQfsize(self.pgresult_ptr, column_number) @property - def binary_tuples(self) -> Format: - return Format(libpq.PQbinaryTuples(self.pgresult_ptr)) + def binary_tuples(self) -> int: + return libpq.PQbinaryTuples(self.pgresult_ptr) def get_value(self, int row_number, int column_number) -> Optional[bytes]: cdef int crow = row_number -- 2.47.2