From 0cdea24bc72fac013abf416f27acd433e5906528 Mon Sep 17 00:00:00 2001 From: tonio3l Date: Tue, 29 Jul 2014 11:46:30 -0700 Subject: [PATCH] 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. --- _example/simple/simple.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_example/simple/simple.go b/_example/simple/simple.go index 21c09c9..a45c22b 100644 --- a/_example/simple/simple.go +++ b/_example/simple/simple.go @@ -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 }