Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 24, 2014
  1. Modify hstore adaptor to only produce strings

    authored
    The prior implementation would adapt the types, and the following would happen:
    
    input:  {'foo': True, 'bar': "baz"}
    output: hstore(ARRAY['foo', 'bar'], ARRAY[true, 'baz'])
    
    The output value of foo is a boolean type, which is not acceptable in an hstore (at least not with this creation method).
    
    Anyways, coercing everything to a string solves the issue. I am using the unicode function to make the tests happy.
Commits on Apr 5, 2014
  1. @dvarrazzo

    Merge branch 'connection-closed'

    dvarrazzo authored
    NEWS for released 2.5.3 reordered.
  2. @dvarrazzo

    Don't specify 0 or 1 in closed docs

    dvarrazzo authored
    There's also 2 which means broken. But I prefer to leave that as
    implementation detail.
  3. @dvarrazzo
  4. @dvarrazzo

    Check the connection is really bad on exception before closing it

    dvarrazzo authored
    We end up here without a pgres sometimes (e.g. from lobject errors)
  5. @dvarrazzo

    Fixed attempt of closing an already closed lobject on dealloc

    dvarrazzo authored
    This results in a "null without exception set" in the corrent state, which
    is caused by the connection being unexpectedly closed anyway.
  6. @dvarrazzo

    Don't set an exception witout GIL closing lobjects with a bad conn

    dvarrazzo authored
    We ended up in this branch only for an excessively aggressive closing
    of the transaction that now I'm going to fix.
  7. @dvarrazzo

    Close a connection if PQexec returned NULL

    dvarrazzo authored
    This happens for Socket connections, not for TCP ones, where a result
    containing an error is returned and correctly handled by pq_raise()
    
    Closes ticket #196 but not #192: poll() still doesn't change the
    connection closed.
  8. @dvarrazzo

    Allow get_transaction_status on closed connections

    dvarrazzo authored
    It's a local operation and the libpq functions has a NULL guard.
Commits on Apr 4, 2014
  1. @dvarrazzo

    Avoid printing the typecast name in debug statement

    dvarrazzo authored
    The way we were doing it is unsafe and causes assertion failures on Py3.
    
    Fixes ticket #188
  2. @dvarrazzo

    Fixed use of Python object with refcount 0 in cursor_init

    dvarrazzo authored
    Caused segfault running test_cursor.CursorTests.test_invalid_name under
    Python 3.4 built in debug mode.
  3. @dvarrazzo

    Work around pip issue #1630 breaking 'pip -e git+url'

    dvarrazzo authored
    pypa/pip#1630
    
    Fixes ticket #18 (opened in 2010!)
Commits on Apr 3, 2014
  1. @dvarrazzo
  2. @dvarrazzo
  3. @dvarrazzo
  4. @dvarrazzo
  5. @dvarrazzo
  6. @dvarrazzo
Commits on Mar 24, 2014
  1. @gnur

    Fixed DNS typo in examples

    gnur authored
Commits on Feb 26, 2014
  1. @dvarrazzo

    Don't segfault on uninitialized cursor

    dvarrazzo authored
    It can happen with bad cursor subclasses not calling super's init. Raise
    an exception instead of segfaulting.
    
    Closes #195
  2. @dvarrazzo
Commits on Feb 24, 2014
  1. @dvarrazzo

    Merge branch 'ticket-194'

    dvarrazzo authored
  2. @dvarrazzo
  3. @dvarrazzo

    Set the connection async before polling for connection

    dvarrazzo authored
    It should fix ticket #194
  4. @dvarrazzo

    Set the connection async earlier in green mode

    dvarrazzo authored
    The moment it is called shouldn't have really changed, but it's more
    explicit when it happens. Previously it was sort of obfuscated behind a
    roundtrip through the green callback and poll.
Commits on Feb 22, 2014
  1. @dvarrazzo

    Merge branch 'range_sort'

    dvarrazzo authored
  2. @dvarrazzo
  3. @dvarrazzo
  4. @dvarrazzo
  5. @dvarrazzo

    Hardcode the list of attributes to be used in comparison

    dvarrazzo authored
    Comparing Range subclasses may lead to surprises.
  6. @dvarrazzo

    Added implementation for Range gt and ge operators

    dvarrazzo authored
    Using a common implementation for all the operators. Note that lt is the
    one used by sort so it's nice it's the fastest.
  7. @dvarrazzo

    Added str() for the Json adapter

    dvarrazzo authored
    Fixes ticket #191.
Commits on Feb 18, 2014
  1. @cjw296
  2. @cjw296
Commits on Feb 14, 2014
  1. @cjw296

    Coding style changes.

    cjw296 authored
Something went wrong with that request. Please try again.