mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where a mismatch in the value of 'Estimated row' for functions. Fixes #5914
This commit is contained in:
committed by
Akshay Joshi
parent
14a5d05b80
commit
25fcdab9db
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user