We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sample code:
package main import ( "database/sql" "fmt" _ "github.com/mattn/go-sqlite3" "os" ) func main() { os.Remove("./foo.db") db, err := sql.Open("sqlite3", "./foo.db") if err != nil { fmt.Println(err) return } defer db.Close() sql := "create table foo (id integer PRIMARY KEY AUTOINCREMENT NOT NULL, name text)" _, err = db.Exec(sql) if err != nil { fmt.Printf("%q: %s\n", err, sql) return } result, err := db.Exec("insert into foo(name) values(1)") if err != nil { fmt.Println(err) return } fmt.Println(result.LastInsertId()) return }
printing 4294967296 <nil>, should print 1 <nil>.
4294967296 <nil>
1 <nil>
Can someone else confirm it?
Windows 7 x32, Go 1.0.3, last go-sqlite3.
Best regards
The text was updated successfully, but these errors were encountered:
Try in latest.
Sorry, something went wrong.
Working, thank you.
No branches or pull requests
Sample code:
printing
4294967296 <nil>
, should print1 <nil>
.Can someone else confirm it?
Windows 7 x32, Go 1.0.3, last go-sqlite3.
Best regards
The text was updated successfully, but these errors were encountered: