Closed asbjorn closed 1 year ago
This auth plugin panic'ed due to a slightly slienced bug in the auth/postgresql.go plugin. When creating the a.authStmt the returned error is disregared: https://github.com/wind-c/comqtt/blob/main/plugin/auth/postgresql/postgresql.go#L97
auth/postgresql.go
a.authStmt
After adding a check here I saw that sqlx didn't like the syntax of the SQL query. Changed to use $1 instead of '?' fixed the issue.
good job
This auth plugin panic'ed due to a slightly slienced bug in the
auth/postgresql.go
plugin. When creating thea.authStmt
the returned error is disregared: https://github.com/wind-c/comqtt/blob/main/plugin/auth/postgresql/postgresql.go#L97After adding a check here I saw that sqlx didn't like the syntax of the SQL query. Changed to use $1 instead of '?' fixed the issue.