diff --git a/src/interfaces/python/pgdb.py b/src/interfaces/python/pgdb.py
index 9a37cce7ccbb0af37e7fd7b10e77b6b45b63fdcb..848cb50940748abfa05b95e552e501a2b074445b 100644
--- a/src/interfaces/python/pgdb.py
+++ b/src/interfaces/python/pgdb.py
@@ -155,7 +155,7 @@ class pgdbTypeCache:
 			# have to be prepended by the caller.
 			res = (
 				res[0],
-				-1, string.atoi(res[1]),
+				None, string.atoi(res[1]),
 				None, None, None
 			)
 			self.__type_cache[oid] = res