Diagnostic Handler not working in API Bindings
Bug #867112 reported by
Rodolfo Ochoa
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
High
|
Rodolfo Ochoa |
Bug Description
When I run this code in python the diagnostic handler method is never called.
class MyDiagnosticHan
def error(self, *args):
print "Error args: ", args
def test(zorba, diagnosticHandler):
try:
xquery = zorba.compileQu
print xquery.execute()
except Exception, e:
print "Cought error: ", e
return
store = zorba_api.
zorba = zorba_api.
diagnosticHandler = MyDiagnosticHan
print "Running: Compile query string using Diagnostic Handler"
test(zorba, diagnosticHandler)
print "Success"
zorba.shutdown()
zorba_api.
Related branches
lp:~zorba-coders/zorba/bug867112
- Matthias Brantner: Approve
- Cezar Andrei: Approve
-
Diff: 494 lines (+132/-89)13 files modifiedChangeLog (+1/-0)
swig/DiagnosticHandler.i (+5/-3)
swig/Exceptions.i (+3/-3)
swig/Zorba.h (+50/-0)
swig/Zorba.i (+48/-76)
swig/java/CMakeLists.txt (+1/-0)
swig/php/CMakeLists.txt (+1/-0)
swig/php/zorba_api.i (+7/-0)
swig/python/CMakeLists.txt (+1/-0)
swig/python/tests/CMakeLists.txt (+3/-3)
swig/python/tests/test03.py.in (+1/-0)
swig/ruby/CMakeLists.txt (+1/-0)
swig/zorba_api.i (+10/-4)
Changed in zorba: | |
status: | New → In Progress |
Changed in zorba: | |
milestone: | none → 2.5 |
Changed in zorba: | |
status: | In Progress → Fix Committed |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Paul, could you please look into this?