Permalink
Switch branches/tags
Nothing to show
Commits on Apr 8, 2012
Commits on Apr 7, 2012
  1. Close Rows in tests.

    benburkert committed Apr 7, 2012
    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.

    benburkert committed Apr 7, 2012
    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 committed Apr 6, 2012
    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 committed Apr 6, 2012
    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 committed Apr 6, 2012
    Signed-off-by: Dan Farina <drfarina@acm.org>
  4. Make tests independent of table "temp"

    Dan Farina committed with bmizerany Apr 6, 2012
    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>
Commits on Apr 5, 2012
Commits on Apr 2, 2012
  1. no longer ref tip

    bmizerany committed Apr 2, 2012
  2. doc ParseURL in README

    bmizerany committed Apr 2, 2012
Commits on Apr 1, 2012
  1. note

    bmizerany committed Apr 1, 2012
  2. refactor url parsing

    bmizerany committed Apr 1, 2012
Commits on Mar 28, 2012
  1. better error test

    bmizerany committed Mar 28, 2012
  2. remove more debug code

    bmizerany committed Mar 28, 2012
  3. fix last wrong

    bmizerany committed Mar 28, 2012
  4. simplify NullTime

    bmizerany committed Mar 28, 2012
  5. remove debug

    bmizerany committed Mar 28, 2012
  6. go fmt

    bmizerany committed Mar 28, 2012
  7. ignore notices in Exec

    bmizerany committed Mar 28, 2012
  8. quick fix #3

    bmizerany committed Mar 28, 2012
  9. debug

    bmizerany committed Mar 28, 2012
  10. test for non-fatal error

    bmizerany committed Mar 27, 2012
  11. format

    bmizerany committed Mar 27, 2012
  12. Tests for NullTime Scan

    bgentry committed Mar 28, 2012
  13. Add pq.NullTime type. Fixes #4

    bgentry committed Mar 28, 2012
Commits on Mar 26, 2012
  1. more debug

    bmizerany committed Mar 26, 2012
  2. debug

    bmizerany committed Mar 26, 2012
  3. pass o to limit num of args

    Ryan Smith (ace hacker) committed with bmizerany Mar 25, 2012
  4. ensure we pass the user and password

    Ryan Smith (ace hacker) committed with bmizerany Mar 25, 2012
Commits on Mar 23, 2012
  1. ParseUrl

    bgentry committed Mar 23, 2012
  2. init

    bmizerany committed Mar 10, 2012