Skip to content

Commit

Permalink
and now with the second temp table, too.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinheppner committed Aug 26, 2024
1 parent 50fd213 commit 36d8edf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/tours.js
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,8 @@ const filterWrapper = async (req, res) => {
new_search_where_searchterm = `AND t.search_column @@ websearch_to_tsquery('${postgresql_language_code}', '${search}') `
}

const temp_table = `temp_`+tld+city+`_`+Date.now();

const temp_table = `temp_`+tld+city.replace(/-/g, '_')+`_`+Date.now();
// console.log("temp_table: ", temp_table)

let temporary_sql = `CREATE TEMP TABLE ${temp_table} AS
Expand Down

0 comments on commit 36d8edf

Please sign in to comment.