diff options
author | tonio3l <antoine.lizee.poly@gmail.com> | 2014-07-29 11:46:30 -0700 |
---|---|---|
committer | tonio3l <antoine.lizee.poly@gmail.com> | 2014-07-29 11:46:30 -0700 |
commit | 0cdea24bc72fac013abf416f27acd433e5906528 (patch) | |
tree | 42b3af09c1508fa52ffa790f535c35d3388a5312 | |
parent | Prefer md (diff) | |
download | golite-0cdea24bc72fac013abf416f27acd433e5906528.tar.gz golite-0cdea24bc72fac013abf416f27acd433e5906528.tar.xz |
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.
-rw-r--r-- | _example/simple/simple.go | 6 |
1 files 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 } |