mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(Postgres Node): Allow users to wrap strings with $$ (#12034)
This commit is contained in:
@@ -143,7 +143,7 @@ export async function execute(
|
||||
}
|
||||
}
|
||||
|
||||
queries.push({ query, values });
|
||||
queries.push({ query, values, options: { partial: true } });
|
||||
}
|
||||
|
||||
return await runQueries(queries, items, nodeOptions);
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
import type { IDataObject, INodeExecutionData, SSHCredentials } from 'n8n-workflow';
|
||||
import type pgPromise from 'pg-promise';
|
||||
import { type IFormattingOptions } from 'pg-promise';
|
||||
import type pg from 'pg-promise/typescript/pg-subset';
|
||||
|
||||
export type QueryMode = 'single' | 'transaction' | 'independently';
|
||||
|
||||
export type QueryValue = string | number | IDataObject | string[];
|
||||
export type QueryValues = QueryValue[];
|
||||
export type QueryWithValues = { query: string; values?: QueryValues };
|
||||
export type QueryWithValues = { query: string; values?: QueryValues; options?: IFormattingOptions };
|
||||
|
||||
export type WhereClause = { column: string; condition: string; value: string | number };
|
||||
export type SortRule = { column: string; direction: string };
|
||||
|
||||
Reference in New Issue
Block a user