Skip to content

Incorrect parameter inference when using positional placeholders inside arithmetic expression #277

Description

@Leo5878

Parameter inference misses $2 in arithmetic expression

UPDATE users
SET license = license + ($2 * 86400)
WHERE user_id_tg = $1
RETURNING id;

Generated type contains only one parameter.

export type SubscriptionUpdateQueryParams = [string];

I think these issues are connected #273

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions