mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-01 09:17:08 +02:00
more fixes
This commit is contained in:
parent
b026413f33
commit
3a46110603
|
|
@ -80,11 +80,11 @@ function getConditionAndParams(
|
|||
}
|
||||
|
||||
// For filters, we let TypeORM handle date conversion through parameterized queries.
|
||||
const value = filter.value;
|
||||
let value = filter.value;
|
||||
|
||||
// if (dbType.startsWith('sqlite') && typeof value === 'object' && !(value instanceof Date)) {
|
||||
// value = JSON.stringify(value);
|
||||
// }
|
||||
if (typeof value === 'object' && !(value instanceof Date)) {
|
||||
value = JSON.stringify(value);
|
||||
}
|
||||
|
||||
// Handle operators that map directly to SQL operators
|
||||
const operators: Record<string, string> = {
|
||||
|
|
|
|||
|
|
@ -403,8 +403,8 @@ export function resolvePath(
|
|||
}
|
||||
return `
|
||||
CASE
|
||||
WHEN pg_input_is_valid(${base}, ${type})
|
||||
THEN ${base}::${type}
|
||||
WHEN pg_input_is_valid((${base}), '${type}')
|
||||
THEN (${base})::${type}
|
||||
ELSE NULL
|
||||
END`;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user