Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Apr 8, 2012
Commits on Apr 7, 2012
  1. Close Rows in tests.

    authored
    The sql.DB.Close() function only closes connections that are marked as
    free. The sql.Rows.Close() function marks the Row's connection as free,
    so it must be invoked to cleanly close the DB.
  2. Send the Termination message when closing a connection.

    authored
    The Postgresql server expects the client to end the connection by
    first sending a Termination message ('X') followed up by closing the
    socket. The server logs a "unexpected EOF on client connection" warning
    if the socket is closed without the preceding Termination message.
Commits on Apr 6, 2012
  1. Readme beefup

    Dan Farina authored
    Including environment variable support and how to use those to make
    testing easier.  Also, link to PostgreSQL 9.1 documents, just because.
    
    Signed-off-by: Dan Farina <drfarina@acm.org>
  2. Implement many libpq environment variables

    Dan Farina authored
    Use these to make the tests less dependent fewer compiled-in defaults
    that cannot be overridden.
    
    By default, the database "pqgotest" is used for tests now.  Unlike
    libpq, "localhost" is used by default instead of the socket directory,
    because there is a large split between vanilla PostgreSQL (which
    places things in /tmp) and the way most packaged PostgreSQL places the
    unix socket (/var/run/postgresql).  Also unlike libpq, we do not have the
    advantage of the default configuration on the system being burned into
    the driver, so "localhost" seems like a reasonable compromise.
    
    A way to overcome that might be to call out to pg_config or link
    against libpq, but that is not very good from a dependency perspective
    and defeats the point of implementing a driver.
    
    To run tests, for example, one can now write:
    
    $ PGHOST=/var/run/postgresql/ go test pq
    
    Signed-off-by: Dan Farina <drfarina@acm.org>
  3. go fmt

    Dan Farina authored
    Signed-off-by: Dan Farina <drfarina@acm.org>
  4. @bmizerany
  5. @bmizerany

    Make tests independent of table "temp"

    Dan Farina authored bmizerany committed
    Previously, the test case would just hang.  That's a very interesting
    behavior if one neglects to check the error and abort, regardless...
    
    Signed-off-by: Dan Farina <drfarina@acm.org>
  6. @bgentry
Commits on Apr 5, 2012
  1. @bgentry
Commits on Apr 2, 2012
  1. @bmizerany

    no longer ref tip

    bmizerany authored
  2. @bmizerany

    doc ParseURL in README

    bmizerany authored
Commits on Apr 1, 2012
  1. @bmizerany

    note

    bmizerany authored
  2. @bmizerany

    refactor url parsing

    bmizerany authored
Commits on Mar 28, 2012
  1. @bmizerany
  2. @bmizerany

    better error test

    bmizerany authored
  3. @bmizerany

    remove more debug code

    bmizerany authored
  4. @bmizerany

    fix last wrong

    bmizerany authored
  5. @bmizerany

    simplify NullTime

    bmizerany authored
  6. @bmizerany

    remove debug

    bmizerany authored
  7. @bmizerany

    go fmt

    bmizerany authored
  8. @bmizerany

    ignore notices in Exec

    bmizerany authored
  9. @bmizerany

    quick fix #3

    bmizerany authored
  10. @bmizerany

    debug

    bmizerany authored
  11. @bmizerany

    test for non-fatal error

    bmizerany authored
  12. @bmizerany

    format

    bmizerany authored
  13. @bgentry

    Tests for NullTime Scan

    bgentry authored
  14. @bgentry

    Add pq.NullTime type. Fixes #4

    bgentry authored
Commits on Mar 26, 2012
  1. @bmizerany

    more debug

    bmizerany authored
  2. @bmizerany

    debug

    bmizerany authored
  3. @bmizerany

    pass o to limit num of args

    Ryan Smith (ace hacker) authored bmizerany committed
  4. @bmizerany

    ensure we pass the user and password

    Ryan Smith (ace hacker) authored bmizerany committed
Commits on Mar 23, 2012
  1. @bgentry

    ParseUrl

    bgentry authored
  2. @bmizerany

    init

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