Commit dc69d46
authored
Fix 'noneType instead of int'
Request:
"select sum(xact_commit) as xact_commit, sum(blks_hit) as blks_hit, sum(blks_read) as blks_read, sum(conflicts) as conflicts, sum(deadlocks) as deadlocks, sum(xact_rollback) as xact_rollback, sum(temp_bytes) as temp_bytes, sum(temp_files) as temp_files, sum(tup_deleted) as tup_deleted, sum(tup_fetched) as tup_fetched, sum(tup_inserted) as tup_inserted, sum(tup_returned) as tup_returned, sum(tup_updated) as tup_updated, sum(checksum_failures) as checksum_failures from pg_catalog.pg_stat_database"
causes error:
"INSTANCE#011-#011catch error: int() argument must be a string or a number, not 'NoneType'"
because in my working database the field 'checksum_failures' is NULL.
Added a function returning '0' if the value is 'NULL'1 parent 60dd239 commit dc69d46
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
0 commit comments