aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortonio3l <antoine.lizee.poly@gmail.com>2014-07-29 11:46:30 -0700
committertonio3l <antoine.lizee.poly@gmail.com>2014-07-29 11:46:30 -0700
commit0cdea24bc72fac013abf416f27acd433e5906528 (patch)
tree42b3af09c1508fa52ffa790f535c35d3388a5312
parentPrefer md (diff)
downloadgolite-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.go6
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
}