Subject | callproc is not implemented yet |
---|---|
Author | mariuz |
Post date | 2011-11-15T16:59:12Z |
python example5.py
Traceback (most recent call last):
File "example5.py", line 6, in <module>
cur.callproc("dept_budget", 100)
File "/usr/local/lib/python2.7/dist-packages/firebirdsql/fbcore.py", line 428, in callproc
raise NotSupportedError()
File "/usr/local/lib/python2.7/dist-packages/firebirdsql/__init__.py", line 47, in __init__
NotSupportedError.__init__(self, 'NotSupportedError')
TypeError: __init__() takes exactly 1 argument (2 given)
cat example5.py
import firebirdsql
con = firebirdsql.connect(dsn='/var/lib/firebird/2.5/data/employee.fdb', user='sysdba', password='masterkey')
cur = con.cursor()
cur.callproc("dept_budget", 100)
Traceback (most recent call last):
File "example5.py", line 6, in <module>
cur.callproc("dept_budget", 100)
File "/usr/local/lib/python2.7/dist-packages/firebirdsql/fbcore.py", line 428, in callproc
raise NotSupportedError()
File "/usr/local/lib/python2.7/dist-packages/firebirdsql/__init__.py", line 47, in __init__
NotSupportedError.__init__(self, 'NotSupportedError')
TypeError: __init__() takes exactly 1 argument (2 given)
cat example5.py
import firebirdsql
con = firebirdsql.connect(dsn='/var/lib/firebird/2.5/data/employee.fdb', user='sysdba', password='masterkey')
cur = con.cursor()
cur.callproc("dept_budget", 100)