forked from mirror/go-sqlite3
Merge pull request #134 from antoine-lizee/patch-1
Update simple.go (very small change)
This commit is contained in:
commit
1704ea522d
|
@ -17,13 +17,13 @@ func main() {
|
|||
}
|
||||
defer db.Close()
|
||||
|
||||
sql := `
|
||||
sqlStmt := `
|
||||
create table foo (id integer not null primary key, name text);
|
||||
delete from foo;
|
||||
`
|
||||
_, err = db.Exec(sql)
|
||||
_, err = db.Exec(sqlStmt)
|
||||
if err != nil {
|
||||
log.Printf("%q: %s\n", err, sql)
|
||||
log.Printf("%q: %s\n", err, sqlStmt)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue