Permalink
Browse files

convert trace id to int

  • Loading branch information...
1 parent af10bdf commit 0080e8ddf19da62dad0a1d781d5f95cf371f6efb @nakagami committed Apr 9, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 firebirdsql/fbcore.py
View
3 firebirdsql/fbcore.py
@@ -1299,6 +1299,7 @@ def trace_start(self, name=None, cfg=None, file=None):
(file if file else sys.stdout).write(self.bytes_to_str(buf[3:3+ln]))
def trace_stop(self, id, file=None):
+ id = int(id)
spb = bs([isc_action_svc_trace_stop])
spb += bs([isc_spb_trc_id]) + int_to_bytes(id, 4)
self._op_service_start(spb)
@@ -1311,6 +1312,7 @@ def trace_stop(self, id, file=None):
(file if file else sys.stdout).write(self.bytes_to_str(buf[3:3+ln]))
def trace_suspend(self, id, file=None):
+ id = int(id)
spb = bs([isc_action_svc_trace_suspned])
spb += bs([isc_spb_trc_id]) + int_to_bytes(id, 4)
self._op_service_start(spb)
@@ -1323,6 +1325,7 @@ def trace_suspend(self, id, file=None):
(file if file else sys.stdout).write(self.bytes_to_str(buf[3:3+ln]))
def trace_resume(self, id, file=None):
+ id = int(id)
spb = bs([isc_action_svc_trace_resume])
spb += bs([isc_spb_trc_id]) + int_to_bytes(id, 4)
self._op_service_start(spb)

0 comments on commit 0080e8d

Please sign in to comment.