aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/python
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/python')
-rw-r--r--src/interfaces/python/pg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/python/pg.py b/src/interfaces/python/pg.py
index 5fd36eed344..0380dc4de9a 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"