PG: Fix updating numeric array (#5251)
* PG: Fix updating numeric array * lint
This commit is contained in:
@@ -1657,6 +1657,10 @@ export class PostgresStorageAdapter implements StorageAdapter {
|
||||
type = 'json';
|
||||
break;
|
||||
}
|
||||
if (typeof elt == 'number') {
|
||||
type = 'numeric';
|
||||
break;
|
||||
}
|
||||
}
|
||||
updatePatterns.push(
|
||||
`$${index}:name = array_to_json($${index + 1}::${type}[])::jsonb`
|
||||
|
||||
Reference in New Issue
Block a user