aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpomadev <y.pomadev@gmail.com>2024-02-21 16:06:43 +0900
committermattn <mattn.jp@gmail.com>2024-02-22 14:15:27 +0900
commit18cdded9007a93b8bc1de151da21b1a1280be722 (patch)
tree96be3cc3323585593ebe9d3ca113afae27e8b98c
parentclose channel (diff)
downloadgolite-18cdded9007a93b8bc1de151da21b1a1280be722.tar.gz
golite-18cdded9007a93b8bc1de151da21b1a1280be722.tar.xz
fix: some typos
-rw-r--r--sqlite3.go2
-rw-r--r--sqlite3_opt_userauth.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/sqlite3.go b/sqlite3.go
index 4b3b6ca..ed2a9e2 100644
--- a/sqlite3.go
+++ b/sqlite3.go
@@ -1679,7 +1679,7 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) {
}
}
- // Forgein Keys
+ // Foreign Keys
if foreignKeys > -1 {
if err := exec(fmt.Sprintf("PRAGMA foreign_keys = %d;", foreignKeys)); err != nil {
C.sqlite3_close_v2(db)
diff --git a/sqlite3_opt_userauth.go b/sqlite3_opt_userauth.go
index de9630c..76d8401 100644
--- a/sqlite3_opt_userauth.go
+++ b/sqlite3_opt_userauth.go
@@ -86,7 +86,7 @@ var (
// combination is incorrect or unknown.
//
// If the SQLITE_USER table is not present in the database file, then
-// this interface is a harmless no-op returnning SQLITE_OK.
+// this interface is a harmless no-op returning SQLITE_OK.
func (c *SQLiteConn) Authenticate(username, password string) error {
rv := c.authenticate(username, password)
switch rv {