1. 13 Mar, 2012 5 commits
  2. 12 Mar, 2012 33 commits
  3. 11 Mar, 2012 1 commit
    • Russ Cox's avatar
      cmd/go: local import fixes · cd7ae05d
      Russ Cox authored
      1) The -D argument should always be a pseudo-import path,
      like _/Users/rsc/foo/bar, never a standard import path,
      because we want local imports to always resolve to pseudo-paths.
      
      2) Disallow local imports in non-local packages.  Otherwise
      everything works but you get two copies of a package
      (the real one and the "local" one) in your binary.
      
      R=golang-dev, bradfitz, yiyu.jgl
      CC=golang-dev
      https://golang.org/cl/5787055
      cd7ae05d
  4. 10 Mar, 2012 1 commit
    • Gwenael Treguier's avatar
      database/sql: ensure Stmts are correctly closed. · c3954dd5
      Gwenael Treguier authored
      To make sure that there is no resource leak,
      I suggest to fix the 'fakedb' driver such as it fails when any
      Stmt is not closed.
      First, add a check in fakeConn.Close().
      Then, fix all missing Stmt.Close()/Rows.Close().
      I am not sure that the strategy choose in fakeConn.Prepare/prepare* is ok.
      The weak point in this patch is the change in Tx.Query:
        - Tests pass without this change,
        - I found it by manually analyzing the code,
        - I just try to make Tx.Query look like DB.Query.
      
      R=golang-dev, bradfitz
      CC=golang-dev
      https://golang.org/cl/5759050
      c3954dd5