drop call of AuthEnabled()
This commit is contained in:
committed by
mattn
parent
eb86f084da
commit
c857a95a18
4
.github/workflows/go.yaml
vendored
4
.github/workflows/go.yaml
vendored
@@ -44,7 +44,7 @@ jobs:
|
|||||||
run: go-acc . -- -race -v -tags "libsqlite3"
|
run: go-acc . -- -race -v -tags "libsqlite3"
|
||||||
|
|
||||||
- name: 'Tags: full'
|
- name: 'Tags: full'
|
||||||
run: go-acc . -- -race -v -tags "sqlite_allow_uri_authority sqlite_app_armor sqlite_column_metadata sqlite_foreign_keys sqlite_fts5 sqlite_icu sqlite_introspect sqlite_json sqlite_math_functions sqlite_os_trace sqlite_preupdate_hook sqlite_secure_delete sqlite_see sqlite_stat4 sqlite_trace sqlite_unlock_notify sqlite_userauth sqlite_vacuum_incr sqlite_vtable"
|
run: go-acc . -- -race -v -tags "sqlite_allow_uri_authority sqlite_app_armor sqlite_column_metadata sqlite_foreign_keys sqlite_fts5 sqlite_icu sqlite_introspect sqlite_json sqlite_math_functions sqlite_os_trace sqlite_preupdate_hook sqlite_secure_delete sqlite_see sqlite_stat4 sqlite_trace sqlite_unlock_notify sqlite_vacuum_incr sqlite_vtable"
|
||||||
|
|
||||||
- name: 'Tags: vacuum'
|
- name: 'Tags: vacuum'
|
||||||
run: go-acc . -- -race -v -tags "sqlite_vacuum_full"
|
run: go-acc . -- -race -v -tags "sqlite_vacuum_full"
|
||||||
@@ -99,7 +99,7 @@ jobs:
|
|||||||
- name: 'Tags: full'
|
- name: 'Tags: full'
|
||||||
run: |
|
run: |
|
||||||
echo 'skip this test'
|
echo 'skip this test'
|
||||||
echo go build -race -v -tags "sqlite_allow_uri_authority sqlite_app_armor sqlite_column_metadata sqlite_foreign_keys sqlite_fts5 sqlite_icu sqlite_introspect sqlite_json sqlite_math_functions sqlite_preupdate_hook sqlite_secure_delete sqlite_see sqlite_stat4 sqlite_trace sqlite_unlock_notify sqlite_userauth sqlite_vacuum_incr sqlite_vtable"
|
echo go build -race -v -tags "sqlite_allow_uri_authority sqlite_app_armor sqlite_column_metadata sqlite_foreign_keys sqlite_fts5 sqlite_icu sqlite_introspect sqlite_json sqlite_math_functions sqlite_preupdate_hook sqlite_secure_delete sqlite_see sqlite_stat4 sqlite_trace sqlite_unlock_notify sqlite_vacuum_incr sqlite_vtable"
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
|
|
||||||
- name: 'Tags: vacuum'
|
- name: 'Tags: vacuum'
|
||||||
|
|||||||
@@ -1568,11 +1568,9 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if conn.AuthEnabled() {
|
// Preform Authentication
|
||||||
// Preform Authentication
|
if err := conn.Authenticate(authUser, authPass); err != nil {
|
||||||
if err := conn.Authenticate(authUser, authPass); err != nil {
|
return nil, err
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Register: authenticate
|
// Register: authenticate
|
||||||
|
|||||||
Reference in New Issue
Block a user