From e3726ad6eb33d39f7f48323ae6147d186992eb83 Mon Sep 17 00:00:00 2001 From: "G.J.R. Timmer" Date: Thu, 22 Aug 2019 12:40:55 +0200 Subject: [PATCH] Fixed operator --- sqlite3.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sqlite3.go b/sqlite3.go index d776f0d..4000173 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -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'") }