kuroneko/gosqlite3 — Issue #13: sqlite3.Open errors if the the database being opened already exists 
Author: vendion
Created: 2012-02-24 16:29:21+00:00
State: open

Using the sample code in this Gist https://gist.github.com/1901836 using go version weekly.2012-02-14 +9e53309dfa6d

If the database doesn't exist when `sqlite3.Open()` gets called gosqlite3 creates the database file just fine, but if the same code is reran while the database file still exits `err` returns non nill and the error that is returned is:

```
go run test.go
panic: SQL error or missing database

goroutine 1 [running]:
main.main()
/home/vendion/test.go:16 +0x127
exit status 2
```

I'm not sure if this is an error with gosqlite3 or not, but its not an issue with the database going bad as I can open the database with `sqlite3` and the data is intact.

```
sqlite3 test.db 1 ?
SQLite version 3.7.10 2012-01-16 13:28:40
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .dump
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE foo (id INTEGER PRIMARY KEY ASC, name VARCHAR(10));
INSERT INTO "foo" VALUES(1,'John');
COMMIT;
```