Commit 716de451 authored by gwenn's avatar gwenn

Fix typos reported by misspell

parent d22febae
......@@ -205,7 +205,7 @@ func (c *conn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, e
return nil, driver.ErrBadConn
}
if !c.c.GetAutocommit() {
return nil, errors.New("Nested transcations are not supported")
return nil, errors.New("Nested transactions are not supported")
}
if err := c.c.SetQueryOnly("", opts.ReadOnly); err != nil {
return nil, err
......
......@@ -151,14 +151,14 @@ func TestSqlTx(t *testing.T) {
defer checkSqlDbClose(db, t)
tx, err := db.Begin()
checkNoError(t, err, "Error while begining tx: %s")
checkNoError(t, err, "Error while beginning tx: %s")
err = tx.Rollback()
checkNoError(t, err, "Error while rollbacking tx: %s")
tx, err = db.Begin()
checkNoError(t, err, "Error while begining tx: %s")
checkNoError(t, err, "Error while beginning tx: %s")
err = tx.Commit()
checkNoError(t, err, "Error while commiting tx: %s")
checkNoError(t, err, "Error while committing tx: %s")
}
func TestSqlPrepare(t *testing.T) {
......
......@@ -266,7 +266,7 @@ func OpenVfs(filename string, vfsname string, flags ...OpenFlag) (*Conn, error)
Code: Errno(rv),
Filename: filename,
}
if db != nil { // try to extract futher details from db...
if db != nil { // try to extract further details from db...
err.ExtendedCode = int(C.sqlite3_extended_errcode(db))
err.Msg = C.GoString(C.sqlite3_errmsg(db))
C.sqlite3_close(db)
......
......@@ -95,11 +95,11 @@ func TestManualTransaction(t *testing.T) {
if err := db.Begin(); err == nil {
t.Fatalf("Error expected (transaction cannot be nested)")
}
checkNoError(t, db.Commit(), "Error while commiting transaction: %s")
checkNoError(t, db.Commit(), "Error while committing transaction: %s")
checkNoError(t, db.BeginTransaction(Immediate), "Error while beginning immediate transaction: %s")
checkNoError(t, db.Commit(), "Error while commiting transaction: %s")
checkNoError(t, db.Commit(), "Error while committing transaction: %s")
checkNoError(t, db.BeginTransaction(Exclusive), "Error while beginning immediate transaction: %s")
checkNoError(t, db.Commit(), "Error while commiting transaction: %s")
checkNoError(t, db.Commit(), "Error while committing transaction: %s")
}
func TestSavepoint(t *testing.T) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment