mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-01 01:07:04 +02:00
strings only
This commit is contained in:
parent
c22dbe4406
commit
41e415ba0f
|
|
@ -80,11 +80,11 @@ function getConditionAndParams(
|
|||
}
|
||||
|
||||
// For filters, we let TypeORM handle date conversion through parameterized queries.
|
||||
let value = filter.value;
|
||||
const value = filter.value;
|
||||
|
||||
if (dbType.startsWith('sqlite') && typeof value === 'object' && !(value instanceof Date)) {
|
||||
value = JSON.stringify(value);
|
||||
}
|
||||
// if (dbType.startsWith('sqlite') && typeof value === 'object' && !(value instanceof Date)) {
|
||||
// value = JSON.stringify(value);
|
||||
// }
|
||||
|
||||
// Handle operators that map directly to SQL operators
|
||||
const operators: Record<string, string> = {
|
||||
|
|
|
|||
|
|
@ -384,10 +384,12 @@ export function resolvePath(
|
|||
value: DataTableColumnJsType,
|
||||
path?: string,
|
||||
) {
|
||||
if (path) {
|
||||
if (path !== undefined) {
|
||||
const pathArray = parsePath(path);
|
||||
if (dbType === 'postgres') {
|
||||
const base = `${ref}${toPostgresPath(pathArray)}`;
|
||||
return `(${base})::text`;
|
||||
|
||||
if (typeof value === 'number') {
|
||||
return `(${base})::numeric`;
|
||||
} else if (value instanceof Date) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user