forked from mirror/go-sqlite3
Update simple.go (very small change)
Renaming the string "sql" into "sqlStmt" in order to prevent mixing with package types & functions sql.* in future edits or code reuse.
This commit is contained in:
parent
9ac94b6fbf
commit
0cdea24bc7
|
@ -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