Skip to content

Commit

Permalink
Fix a formatting issue in View/Edit tool generated SQL where some fil…
Browse files Browse the repository at this point in the history
…ters are applied. #8254
  • Loading branch information
RohitBhati8269 authored Dec 30, 2024
1 parent 92e531d commit bcd6f3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ export default function QueryToolComponent({params, pgWindow, pgAdmin, selectedN
role: selectedConn.role,
password: password,
dbname: selectedConn.database_name
} : JSON.stringify(qtState.params.sql_filter))
} : qtState.params.sql_filter)
.then(()=>{
setQtStatePartial({
connected: true,
Expand Down
2 changes: 1 addition & 1 deletion web/pgadmin/tools/sqleditor/static/js/show_view_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function showFilterDialog(pgBrowser, item, queryToolMod, transId,
let helpUrl = url_for('help.static', {'filename': 'viewdata_filter.html'});

let okCallback = function() {
queryToolMod.launch(transId, gridUrl, false, queryToolTitle, {sql_filter: schema.sessData.filter_sql});
queryToolMod.launch(transId, gridUrl, false, queryToolTitle, {sql_filter: JSON.stringify(schema.sessData.filter_sql)});
};

pgBrowser.Events.trigger('pgadmin:utility:show', item,
Expand Down

0 comments on commit bcd6f3f

Please sign in to comment.