Fixed an issue where a mismatch in the value of 'Estimated row' for functions. Fixes #5914

This commit is contained in:
Pradip Parkale
2020-10-30 15:09:40 +05:30
committed by Akshay Joshi
parent 14a5d05b80
commit 25fcdab9db
2 changed files with 9 additions and 4 deletions

View File

@@ -433,7 +433,11 @@ define('pgadmin.node.function', [
if (this.name == 'sysproc') { return false; }
return true;
},
isDisabled: function() {
isDisabled: function(m) {
//Disable the returns a set and window in edit mode.
if((this.name == 'proretset' || this.name == 'proiswindow') && !m.isNew()){
return true;
}
if(this.node_info && 'catalog' in this.node_info) {
return true;
}
@@ -456,11 +460,11 @@ define('pgadmin.node.function', [
return !m.isNew();
case 'prorows':
if(m.get('proretset') == true) {
setTimeout(function() {
m.set('prorows', 0);
}, 10);
return false;
}
setTimeout(function() {
m.set('prorows', 0);
}, 10);
return true;
default:
return false;