psycopg2中没有光标

时间:2017-02-25 06:01:00

标签: python-2.7 psycopg2 psql

psycopg2中没有光标。我使用pycharm来安装库,但我一直收到同样的错误:

Traceback (most recent call last):
posts = forumdb.GetAllPosts()
File "/vagrant/forum/forumdb.py", line 13, in GetAllPosts
c = db.cursor()
AttributeError: 'builtin_function_or_method' object has no attribute 'execute'

0 个答案:

没有答案