-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot insert while select is active (same or different table) #39
Comments
If you have latest sqlite3 and go-sqlite3, try to use: db, err := sql.Open("sqlite3", "file:locked.sqlite?cache=shared&mode=rwc") |
Wow thank you. I got the latest versions, fixed pkg-config stuff and yes, it does indeed work as intended now. Weird. |
I built go-sqlite3.go and I could see the go-sqlite3.a in my GOPATH/pkg. But when I built the example, I got: command-line-argumentsD:\tzn\bishe\GoSmp\pkg\windows_386/github.com/mattn/go-sqlite3.a(sqlite3_windows.)(.text): __divdi3: not defined give me a hand,thanks. |
@mattn I am in window 32bit ,using go1.0.3 and sublimetext 2.0,I have the sqlite3.dll but I don't know where to put it or how to use it. |
You need to build go from source code. |
Cannot insert or update while a query is "opened", which is not prohibited by the SQLite api.
Opening the database with SQLITE_OPEN_NOMUTEX or SQLITE_OPEN_PRIVATECACHE does not fix the problem.
This code while always result in golang "could not insert data into dst: database is locked". When one writes the equivalent code in C, the program just works.
I am about lost as to how to fix the problem. This "kind of use" has been supported by SQLite for quite some time now: database is locked.
The text was updated successfully, but these errors were encountered: