Re: Integration of Psycopg with XTA

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: Christian Ferrari <camauz(at)yahoo(dot)com>
Cc: psycopg(at)lists(dot)postgresql(dot)org
Subject: Re: Integration of Psycopg with XTA
Date: 2018-09-27 14:40:53
Message-ID: CA+mi_8bZ-hxA2DTshOh15b1GdbET8+EVO5eh9N2qyyfvDgXKCw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On Wed, Sep 26, 2018 at 9:36 PM Christian Ferrari <camauz(at)yahoo(dot)com> wrote:
>
> Dear Daniele,
> thank you for providing the hack: it's a starting point to check integration feasibility.
> Unfortunately it does not work in my environment:
> Ubuntu LTS 14.04 64 bit
> python 2.7.6

> File "pqconn_hack.py", line 24, in getpqconn
> pqconn = htonl(int(hex[ver_off + 8:ver_off + 16], 16))
> TypeError: 'builtin_function_or_method' object has no attribute '__getitem__'

This is an error: it should have been 'mem' instead of 'hex':

pqconn = htonl(int(mem[ver_off + 8:ver_off + 16], 16))

-- Daniele

In response to

Responses

Browse psycopg by date

  From Date Subject
Next Message Christian Ferrari 2018-09-27 19:57:35 Re: Integration of Psycopg with XTA
Previous Message Federico Di Gregorio 2018-09-27 08:14:35 Re: Integration of Psycopg with XTA