Fixed debugger issue for procedure inside package for EPAS servers. Fixes #3927

This commit is contained in:
Akshay Joshi
2019-01-30 14:48:58 +05:30
parent ab094e8f16
commit 0e489df7b0
3 changed files with 12 additions and 13 deletions

View File

@@ -41,5 +41,6 @@ Bug fixes
| `Bug #3897 <https://redmine.postgresql.org/issues/3897>`_ - Data should be updated properly for FTS Configurations, FTS Dictionaries, FTS Parsers and FTS Templates.
| `Bug #3903 <https://redmine.postgresql.org/issues/3903>`_ - Fixed Query Tool Initialization Error.
| `Bug #3908 <https://redmine.postgresql.org/issues/3908>`_ - Fixed keyboard navigation for Select2 and Privilege cell in Backgrid.
| `Bug #3927 <https://redmine.postgresql.org/issues/3927>`_ - Fixed debugger issue for procedure inside package for EPAS servers.
| `Bug #3929 <https://redmine.postgresql.org/issues/3929>`_ - Fix alignment of help messages in properties panels.
| `Bug #3935 <https://redmine.postgresql.org/issues/3935>`_ - Ensure that grant wizard should list down functions for EPAS server running with no-redwood-compat mode.

View File

@@ -409,6 +409,7 @@ def close(trans_id):
# Release the connection
if conn.connected():
conn.cancel_transaction(cmd_obj.conn_id, cmd_obj.did)
manager.release(did=cmd_obj.did, conn_id=cmd_obj.conn_id)
# Remove the information of unique transaction id from the

View File

@@ -13,6 +13,7 @@ MODULE_NAME = 'debugger'
import simplejson as json
import random
import re
from flask import url_for, Response, render_template, request, session, \
current_app
@@ -1301,20 +1302,16 @@ def messages(trans_id):
# From the above message we need to find out port number
# as "7" so below logic will find 7 as port number
# and attach listened to that port number
offset = notify[0].find('PLDBGBREAK')
str_len = len('PLDBGBREAK')
str_len += 1
tmpOffset = 0
tmpFlag = False
port_found = False
tmp_list = list(filter(lambda x: 'PLDBGBREAK' in x, notify))
if len(tmp_list) > 0:
port_number = re.search(r'\d+', tmp_list[0])
if port_number is not None:
status = 'Success'
port_number = port_number.group(0)
port_found = True
while notify[0][offset + str_len + tmpOffset].isdigit():
status = 'Success'
tmpFlag = True
port_number = port_number + \
notify[0][offset + str_len + tmpOffset]
tmpOffset += 1
if not tmpFlag:
if not port_found:
status = 'Busy'
else:
status = 'Busy'