Skip to content

#1121 (v3.4.8) introduces regression in TS support in transactions #1143

@abrahamguo

Description

@abrahamguo

As already discussed in #1121:

@porsager / @maxcbc this caused a pretty serious regression, i.e. all sql calls within sql.begins are now broken:

sql.begin(async (sql) => {
  await sql`my query`; // <== error here:
  // TS2349: This expression is not callable.
  // Type TransactionSql<{}> has no call signatures.
});

See Dimous's comment here:

36a53f6#commitcomment-170665877

@maxcbc do you mind either preparing a revert, or fixing forward?

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