postgres formencode.api.Invalid

错误提示:

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

 

 

postgres formencode.api.Invalid

改正

位置:/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()

 





本文转自jihite博客园博客,原文链接:http://www.cnblogs.com/kaituorensheng/p/4667427.html,如需转载请自行联系原作者