zl程序教程

您现在的位置是:首页 >  工具

当前栏目

postgres formencode.api.Invalid

invalidAPI Postgres
2023-09-27 14:25:21 时间

错误提示:

Invalid: expected an int in the IntCol 'geom', got <type 'str'> '010100000007EBFFFC3A611941C71000DC148C0141' instead

 

改正

位置:/usr/local/lib/python2.7/dist-packages/SQLObject-3.0.0a1dev_20150327-py2.7.egg/sqlobject/postgres/pgconnection.py

定位到:def guessClass(self, t):

加上:t = str(t).lower()