diff options
author | G.J.R. Timmer <gjr.timmer@gmail.com> | 2019-08-22 12:40:55 +0200 |
---|---|---|
committer | Gert-Jan Timmer <gjr.timmer@gmail.com> | 2019-08-22 14:53:27 +0200 |
commit | e3726ad6eb33d39f7f48323ae6147d186992eb83 (patch) | |
tree | 58a7843dd13e0b5d68607cf2d6c4bc306351bd51 | |
parent | Fix _auth_* parameter check (diff) | |
download | golite-e3726ad6eb33d39f7f48323ae6147d186992eb83.tar.gz golite-e3726ad6eb33d39f7f48323ae6147d186992eb83.tar.xz |
Fixed operator
-rw-r--r-- | sqlite3.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1522,10 +1522,10 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) { // Before going any further, we need to check that the user // has provided an username and password within the DSN. // We are not allowed to continue. - if len(authUser) <= 0 { + if len(authUser) == 0 { return nil, fmt.Errorf("Missing '_auth_user' while user authentication was requested with '_auth'") } - if len(authPass) <= 0 { + if len(authPass) == 0 { return nil, fmt.Errorf("Missing '_auth_pass' while user authentication was requested with '_auth'") } |