mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
parent
36a8e911e6
commit
92af1314fe
|
@ -89,7 +89,7 @@ describe('Test PostgresV2, deleteTable operation', () => {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
options: { typeVersion: 2.1 },
|
options: { nodeVersion: 2.1 },
|
||||||
};
|
};
|
||||||
const nodeOptions = nodeParameters.options as IDataObject;
|
const nodeOptions = nodeParameters.options as IDataObject;
|
||||||
|
|
||||||
|
@ -168,7 +168,7 @@ describe('Test PostgresV2, deleteTable operation', () => {
|
||||||
cachedResultName: 'my_table',
|
cachedResultName: 'my_table',
|
||||||
},
|
},
|
||||||
deleteCommand: 'drop',
|
deleteCommand: 'drop',
|
||||||
options: { typeVersion: 2.1 },
|
options: { nodeVersion: 2.1 },
|
||||||
};
|
};
|
||||||
const nodeOptions = nodeParameters.options as IDataObject;
|
const nodeOptions = nodeParameters.options as IDataObject;
|
||||||
|
|
||||||
|
@ -256,7 +256,7 @@ describe('Test PostgresV2, insert operation', () => {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
options: { typeVersion: 2.1 },
|
options: { nodeVersion: 2.1 },
|
||||||
};
|
};
|
||||||
const columnsInfo: ColumnInfo[] = [
|
const columnsInfo: ColumnInfo[] = [
|
||||||
{ column_name: 'id', data_type: 'integer', is_nullable: 'NO', udt_name: '' },
|
{ column_name: 'id', data_type: 'integer', is_nullable: 'NO', udt_name: '' },
|
||||||
|
@ -299,7 +299,7 @@ describe('Test PostgresV2, insert operation', () => {
|
||||||
mode: 'list',
|
mode: 'list',
|
||||||
},
|
},
|
||||||
dataMode: 'autoMapInputData',
|
dataMode: 'autoMapInputData',
|
||||||
options: { typeVersion: 2.1 },
|
options: { nodeVersion: 2.1 },
|
||||||
};
|
};
|
||||||
const columnsInfo: ColumnInfo[] = [
|
const columnsInfo: ColumnInfo[] = [
|
||||||
{ column_name: 'id', data_type: 'integer', is_nullable: 'NO', udt_name: '' },
|
{ column_name: 'id', data_type: 'integer', is_nullable: 'NO', udt_name: '' },
|
||||||
|
@ -509,7 +509,7 @@ describe('Test PostgresV2, update operation', () => {
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
outputColumns: ['json', 'foo'],
|
outputColumns: ['json', 'foo'],
|
||||||
typeVersion: 2.1,
|
nodeVersion: 2.1,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
const columnsInfo: ColumnInfo[] = [
|
const columnsInfo: ColumnInfo[] = [
|
||||||
|
@ -566,7 +566,7 @@ describe('Test PostgresV2, update operation', () => {
|
||||||
},
|
},
|
||||||
dataMode: 'autoMapInputData',
|
dataMode: 'autoMapInputData',
|
||||||
columnToMatchOn: 'id',
|
columnToMatchOn: 'id',
|
||||||
options: { typeVersion: 2.1 },
|
options: { nodeVersion: 2.1 },
|
||||||
};
|
};
|
||||||
const columnsInfo: ColumnInfo[] = [
|
const columnsInfo: ColumnInfo[] = [
|
||||||
{ column_name: 'id', data_type: 'integer', is_nullable: 'NO', udt_name: '' },
|
{ column_name: 'id', data_type: 'integer', is_nullable: 'NO', udt_name: '' },
|
||||||
|
@ -669,7 +669,7 @@ describe('Test PostgresV2, upsert operation', () => {
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
outputColumns: ['json'],
|
outputColumns: ['json'],
|
||||||
typeVersion: 2.1,
|
nodeVersion: 2.1,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
const columnsInfo: ColumnInfo[] = [
|
const columnsInfo: ColumnInfo[] = [
|
||||||
|
@ -726,7 +726,7 @@ describe('Test PostgresV2, upsert operation', () => {
|
||||||
},
|
},
|
||||||
dataMode: 'autoMapInputData',
|
dataMode: 'autoMapInputData',
|
||||||
columnToMatchOn: 'id',
|
columnToMatchOn: 'id',
|
||||||
options: { typeVersion: 2.1 },
|
options: { nodeVersion: 2.1 },
|
||||||
};
|
};
|
||||||
const columnsInfo: ColumnInfo[] = [
|
const columnsInfo: ColumnInfo[] = [
|
||||||
{ column_name: 'id', data_type: 'integer', is_nullable: 'NO', udt_name: '' },
|
{ column_name: 'id', data_type: 'integer', is_nullable: 'NO', udt_name: '' },
|
||||||
|
|
|
@ -162,7 +162,7 @@ export async function execute(
|
||||||
db: PgpDatabase,
|
db: PgpDatabase,
|
||||||
): Promise<INodeExecutionData[]> {
|
): Promise<INodeExecutionData[]> {
|
||||||
items = replaceEmptyStringsByNulls(items, nodeOptions.replaceEmptyStrings as boolean);
|
items = replaceEmptyStringsByNulls(items, nodeOptions.replaceEmptyStrings as boolean);
|
||||||
const nodeVersion = nodeOptions.typeVersion as number;
|
const nodeVersion = nodeOptions.nodeVersion as number;
|
||||||
|
|
||||||
let schema = this.getNodeParameter('schema', 0, undefined, {
|
let schema = this.getNodeParameter('schema', 0, undefined, {
|
||||||
extractValue: true,
|
extractValue: true,
|
||||||
|
|
|
@ -199,7 +199,7 @@ export async function execute(
|
||||||
db: PgpDatabase,
|
db: PgpDatabase,
|
||||||
): Promise<INodeExecutionData[]> {
|
): Promise<INodeExecutionData[]> {
|
||||||
items = replaceEmptyStringsByNulls(items, nodeOptions.replaceEmptyStrings as boolean);
|
items = replaceEmptyStringsByNulls(items, nodeOptions.replaceEmptyStrings as boolean);
|
||||||
const nodeVersion = nodeOptions.typeVersion as number;
|
const nodeVersion = nodeOptions.nodeVersion as number;
|
||||||
|
|
||||||
let schema = this.getNodeParameter('schema', 0, undefined, {
|
let schema = this.getNodeParameter('schema', 0, undefined, {
|
||||||
extractValue: true,
|
extractValue: true,
|
||||||
|
|
|
@ -198,7 +198,7 @@ export async function execute(
|
||||||
db: PgpDatabase,
|
db: PgpDatabase,
|
||||||
): Promise<INodeExecutionData[]> {
|
): Promise<INodeExecutionData[]> {
|
||||||
items = replaceEmptyStringsByNulls(items, nodeOptions.replaceEmptyStrings as boolean);
|
items = replaceEmptyStringsByNulls(items, nodeOptions.replaceEmptyStrings as boolean);
|
||||||
const nodeVersion = nodeOptions.typeVersion as number;
|
const nodeVersion = nodeOptions.nodeVersion as number;
|
||||||
|
|
||||||
let schema = this.getNodeParameter('schema', 0, undefined, {
|
let schema = this.getNodeParameter('schema', 0, undefined, {
|
||||||
extractValue: true,
|
extractValue: true,
|
||||||
|
|
Loading…
Reference in a new issue