kuroneko/gosqlite3 — Issue #11: Deadlock?
Author: gitfoxi
Created: 2012-02-11 01:35:39+00:00
State: open

I'm new to Go, so sorry I can't debug this any further, but it locks up rather than return some kind of complaint.

```
package main

import (
"github.com/kuroneko/sqlite3"
"fmt"
)

func main() {

db,err := sqlite3.Open( "test.db" )
fmt.Println("Open",err)
defer db.Close()
_, err = db.Execute( "CREATE TABLE t(id INTEGER PRIMARY KEY ASC, unique_int INTEGER UNIQUE);" )
n,er := db.Execute( "INSERT INTO t ( unique_int ) VALUES ( 1 );" )
fmt.Println( "Inserted.",n,er )
n,er = db.Execute( "INSERT INTO t ( unique_int ) VALUES ( 1 );" )
fmt.Println( "I never get here.",n,er )
}
```