diff options
author | G.J.R. Timmer <gjr.timmer@gmail.com> | 2019-08-22 12:11:43 +0200 |
---|---|---|
committer | Gert-Jan Timmer <gjr.timmer@gmail.com> | 2019-08-22 14:53:27 +0200 |
commit | b22da71572f0074d6f21d3bbbbfc015d2e0134c8 (patch) | |
tree | 5a8eaeed4b2c7771857ef820b61ce96120076753 /sqlite3.go | |
parent | Closes #597 (diff) | |
download | golite-b22da71572f0074d6f21d3bbbbfc015d2e0134c8.tar.gz golite-b22da71572f0074d6f21d3bbbbfc015d2e0134c8.tar.xz |
Fix _auth_* parameter check
Fixes: #724
Diffstat (limited to 'sqlite3.go')
-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'") } |