diff --git a/src/interfaces/python/pg.py b/src/interfaces/python/pg.py index 5fd36eed34..0380dc4de9 100644 --- a/src/interfaces/python/pg.py +++ b/src/interfaces/python/pg.py @@ -17,7 +17,7 @@ def _quote(d, t): if t in ['int', 'seq']: if d == "": return "NULL" - return "%d" % int(d) + return "%d" % long(d) if t == 'decimal': if d == "": return "NULL"