Skip to content

Commit de480cb

Browse files
author
Nicolas Payart
committed
Fix condition in dispatch_value function to manage values '0' that were interpreted as False
1 parent 3cb14e6 commit de480cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def dispatch_value(prefix, key, value, type, type_instance=None):
494494
type_instance = key
495495

496496
log_verbose('Sending value: %s/%s=%s' % (prefix, type_instance, value))
497-
if not value:
497+
if value is None:
498498
return
499499
try:
500500
value = int(value)

0 commit comments

Comments
 (0)