Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Daniele Varrazzo's latest activity

Thursday, November 03 2011
73 create = False was updated in psycopg
  • Daniele Varrazzo
    Daniele Varrazzo commented at 3:56 PM

    No problem:

    git clone git://github.com/dvarrazzo/psycopg.git
    cd psycopg
    git co devel  (it may say you are already on branch devel)
    make
    

    you should have now a ...

  • Daniele Varrazzo
    Daniele Varrazzo commented at 3:15 PM

    yuri,

    could you test the behaviour with the current head version (e.g. you may check it out from the devel branch in https://github.com/dvarrazzo/psycopg/).

    The...

Friday, October 14 2011
52 Can't adapt type 'Decimal' was updated in psycopg
72 ARRAY could not convert type double precision[] to numeric[] was updated in psycopg
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 9:21 PM

    I've tested with my collection of dbs and you need at least PostgreSQL 8.4.

  • Daniele Varrazzo
    Daniele Varrazzo commented at 1:13 PM

    Your problem is in postgres: probably 8.1 doesn't support NaN in numeric array. Your test works fine with postgres 9.0.

Thursday, October 13 2011
52 Can't adapt type 'Decimal' was updated in psycopg
  • Daniele Varrazzo
    Daniele Varrazzo commented at 6:15 PM

    About the other types: I think no: Decimal is the only pure python module imported and used by psycopg in the C layer, all the other builtins are python C types...

  • Daniele Varrazzo
    Daniele Varrazzo commented at 6:11 PM

    Don't know about the other adapter, how do they do adaptation and all. Probably they have always done everything in Python and so ditched the problem.

  • Daniele Varrazzo
    Daniele Varrazzo commented at 6:08 PM

    After a quick review, the psyco_GetDecimalType is still required for the other half of the story: in order to return from Postgres to Python a Decimal type whos...

  • Daniele Varrazzo
    • State changed from new to open
    by Daniele Varrazzo at 5:58 PM

    I've taken a look at the issue. Thank you for the test case: it worked fine and allowed me to debug a little bit.

    About the above approach of testing using ctyp...

72 ARRAY could not convert type double precision[] to numeric[] was updated in psycopg
  • Daniele Varrazzo
    Daniele Varrazzo commented at 3:49 PM

    Cannot reproduce the issue: adaptation seems performed ok. What is the definition of the table?

    With the lack of such definition I can only try a cast, and it s...