Skip to content

Commit

Permalink
fixup! fix(client): Correctly report error location in batch transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
SevInf committed Nov 11, 2022
1 parent 825b2dd commit 29b6d5b
Showing 1 changed file with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ exports[`interactive-transactions (provider=cockroachdb) batching rollback 1`] =
Invalid \`prisma.user.create()\` invocation in
/client/tests/functional/interactive-transactions/tests.ts:0:0
XX 'batching rollback',
XX async () => {
XX const result = prisma.$transaction([
XX prisma.user.create(
XX email: 'user_1@website.com',
XX },
XX }),
→ XX prisma.user.create(
Unique constraint failed on the fields: (\`email\`)
`;

Expand All @@ -37,10 +37,10 @@ exports[`interactive-transactions (provider=mongodb) batching rollback 1`] = `
Invalid \`prisma.user.create()\` invocation in
/client/tests/functional/interactive-transactions/tests.ts:0:0
XX 'batching rollback',
XX async () => {
XX const result = prisma.$transaction([
XX prisma.user.create(
XX email: 'user_1@website.com',
XX },
XX }),
→ XX prisma.user.create(
Unique constraint failed on the constraint: \`User_email_key\`
`;

Expand Down Expand Up @@ -69,10 +69,10 @@ exports[`interactive-transactions (provider=mysql) batching rollback 1`] = `
Invalid \`prisma.user.create()\` invocation in
/client/tests/functional/interactive-transactions/tests.ts:0:0
XX 'batching rollback',
XX async () => {
XX const result = prisma.$transaction([
XX prisma.user.create(
XX email: 'user_1@website.com',
XX },
XX }),
→ XX prisma.user.create(
Unique constraint failed on the constraint: \`User_email_key\`
`;

Expand Down Expand Up @@ -101,10 +101,10 @@ exports[`interactive-transactions (provider=postgresql) batching rollback 1`] =
Invalid \`prisma.user.create()\` invocation in
/client/tests/functional/interactive-transactions/tests.ts:0:0
XX 'batching rollback',
XX async () => {
XX const result = prisma.$transaction([
XX prisma.user.create(
XX email: 'user_1@website.com',
XX },
XX }),
→ XX prisma.user.create(
Unique constraint failed on the fields: (\`email\`)
`;

Expand Down Expand Up @@ -133,10 +133,10 @@ exports[`interactive-transactions (provider=sqlite) batching rollback 1`] = `
Invalid \`prisma.user.create()\` invocation in
/client/tests/functional/interactive-transactions/tests.ts:0:0
XX 'batching rollback',
XX async () => {
XX const result = prisma.$transaction([
XX prisma.user.create(
XX email: 'user_1@website.com',
XX },
XX }),
→ XX prisma.user.create(
Unique constraint failed on the fields: (\`email\`)
`;

Expand Down Expand Up @@ -165,10 +165,10 @@ exports[`interactive-transactions (provider=sqlserver) batching rollback 1`] = `
Invalid \`prisma.user.create()\` invocation in
/client/tests/functional/interactive-transactions/tests.ts:0:0
XX 'batching rollback',
XX async () => {
XX const result = prisma.$transaction([
XX prisma.user.create(
XX email: 'user_1@website.com',
XX },
XX }),
→ XX prisma.user.create(
Unique constraint failed on the constraint: \`dbo.User\`
`;

Expand Down

0 comments on commit 29b6d5b

Please sign in to comment.