hydrian / TTRSS-Auth-LDAP

GitHub repository for Tiny Tiny RSS's auth_ldap plugin
https://github.com/hydrian/TTRSS-Auth-LDAP/wiki
Other
28 stars 21 forks source link

Fix default value for line in log entry #18

Closed corux closed 8 years ago

corux commented 9 years ago

SQL schema requires the lineno to be a NOT NULL integer.

Without this fix, these errors get logged instead of the actual log messages:

Query INSERT INTO ttrss_error_log
                (errno, errstr, filename, lineno, context, owner_uid, created_at) VALUES
                (1024, 'User: XXXXXX authentication successful', '', '', '', NULL, NOW()) failed: ERROR:  invalid input syntax for integer: ""
LINE 3: ...24, 'User: XXXXXXXXX authentication successful', '', '', '', NU...
                                                             ^
classes/db/pgsql.php