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:
tonio3l 2014-07-29 11:46:30 -07:00
parent 9ac94b6fbf
commit 0cdea24bc7
1 changed files with 3 additions and 3 deletions

View File

@ -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
}