Skip to content

Commit

Permalink
fixing _TN function
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed May 25, 2024
1 parent 22abf90 commit 1e6aba6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/helpers/table-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ npm.utils.addInspection(TableName, function () {
*/
function _TN(a, ...args) {
if (Array.isArray(a) && a.raw) {
a = args.length ? args.map((b, i) => a[i] + b).join('') : a[0];
a = args.length ? a.map((b, i) => b + (args[i] || '')).join('') : a[0];
}
const [schema, table] = a.split('.');
return table === undefined ? {table: schema} : {schema, table};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pg-promise",
"version": "11.7.2",
"version": "11.7.3",
"description": "PostgreSQL interface for Node.js",
"main": "lib/index.js",
"typings": "typescript/pg-promise.d.ts",
Expand Down

0 comments on commit 1e6aba6

Please sign in to comment.