Skip to content

Commit

Permalink
chore(deps): update dependency @prisma/adapter-planetscale to v5.5.0 (#…
Browse files Browse the repository at this point in the history
…21603)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Joël Galeran <[email protected]>
  • Loading branch information
2 people authored and Sergey Tatarintsev committed Oct 25, 2023
1 parent 5072f0e commit c7d63e7
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 23 deletions.
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"@prisma/adapter-libsql": "5.5.0",
"@prisma/adapter-neon": "5.5.0",
"@prisma/adapter-pg": "5.5.0",
"@prisma/adapter-planetscale": "5.4.1",
"@prisma/adapter-planetscale": "5.5.0",
"@prisma/debug": "workspace:*",
"@prisma/driver-adapter-utils": "5.5.0",
"@prisma/engines": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,25 @@ Invalid \`tx.user.create()\` invocation in
Unique constraint failed on the constraint: \`User_email_key\`
`;

exports[`extensions.itx (provider=mysql, js_planetscale) extended client in itx can rollback via custom call 1`] = `target: test-0000-00000000.0.primary: vttablet: rpc error: code = AlreadyExists desc = Duplicate entry '[email protected]' for key 'User.User_email_key' (errno 1062) (sqlstate 23000) (CallerID: userData1): Sql: "insert into \`User\`(id, email, firstName, lastName) values (:vtg1 /* VARCHAR */, :vtg2 /* VARCHAR */, :vtg3 /* VARCHAR */, :vtg4 /* VARCHAR */)", BindVars: {vtg1: "type:VARCHAR value:\\"02d25579a73a72373fa4e846\\""vtg2: "type:VARCHAR value:\\"jane@smith.com\\""vtg3: "type:VARCHAR value:\\"Jane\\""vtg4: "type:VARCHAR value:\\"Smith\\""} (errno 1062) (sqlstate 23000) during query: INSERT INTO \`test-0000-00000000\`.\`User\` (\`id\`,\`email\`,\`firstName\`,\`lastName\`) VALUES ('02d25579a73a72373fa4e846','[email protected]','Jane','Smith')`;
exports[`extensions.itx (provider=mysql, js_planetscale) extended client in itx can rollback via custom call 1`] = `
exports[`extensions.itx (provider=mysql, js_planetscale) extended client in itx can rollback via normal call 1`] = `target: test-0000-00000000.0.primary: vttablet: rpc error: code = AlreadyExists desc = Duplicate entry '[email protected]' for key 'User.User_email_key' (errno 1062) (sqlstate 23000) (CallerID: userData1): Sql: "insert into \`User\`(id, email, firstName, lastName) values (:vtg1 /* VARCHAR */, :vtg2 /* VARCHAR */, :vtg3 /* VARCHAR */, :vtg4 /* VARCHAR */)", BindVars: {vtg1: "type:VARCHAR value:\\"02d25579a73a72373fa4e846\\""vtg2: "type:VARCHAR value:\\"jane@smith.com\\""vtg3: "type:VARCHAR value:\\"Jane\\""vtg4: "type:VARCHAR value:\\"Smith\\""} (errno 1062) (sqlstate 23000) during query: INSERT INTO \`test-0000-00000000\`.\`User\` (\`id\`,\`email\`,\`firstName\`,\`lastName\`) VALUES ('02d25579a73a72373fa4e846','[email protected]','Jane','Smith')`;
Invalid \`prisma.user.create()\` invocation:
Unique constraint failed on the constraint: \`User_email_key\`
`;

exports[`extensions.itx (provider=mysql, js_planetscale) extended client in itx can rollback via normal call 1`] = `
Invalid \`tx.user.create()\` invocation in
/client/tests/functional/extensions/itx.ts:0:0
XX },
XX })
XX
→ XX await tx.user.create(
Unique constraint failed on the constraint: \`User_email_key\`
`;

exports[`extensions.itx (provider=postgresql) extended client in itx can rollback via custom call 1`] = `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,25 @@ Invalid \`xprisma.user.create()\` invocation in
Unique constraint failed on the constraint: \`User_email_key\`
`;

exports[`extensions.tx (provider=mysql, js_planetscale) extended client in tx can rollback via custom call 1`] = `target: test-0000-00000000.0.primary: vttablet: rpc error: code = AlreadyExists desc = Duplicate entry '[email protected]' for key 'User.User_email_key' (errno 1062) (sqlstate 23000) (CallerID: userData1): Sql: "insert into \`User\`(id, email, firstName, lastName) values (:vtg1 /* VARCHAR */, :vtg2 /* VARCHAR */, :vtg3 /* VARCHAR */, :vtg4 /* VARCHAR */)", BindVars: {vtg1: "type:VARCHAR value:\\"a85d5d75a3a886cb61eb3a0e\\""vtg2: "type:VARCHAR value:\\"jane@smith.com\\""vtg3: "type:VARCHAR value:\\"Jane\\""vtg4: "type:VARCHAR value:\\"Smith\\""} (errno 1062) (sqlstate 23000) during query: INSERT INTO \`test-0000-00000000\`.\`User\` (\`id\`,\`email\`,\`firstName\`,\`lastName\`) VALUES ('a85d5d75a3a886cb61eb3a0e','[email protected]','Jane','Smith')`;
exports[`extensions.tx (provider=mysql, js_planetscale) extended client in tx can rollback via custom call 1`] = `
exports[`extensions.tx (provider=mysql, js_planetscale) extended client in tx can rollback via normal call 1`] = `target: test-0000-00000000.0.primary: vttablet: rpc error: code = AlreadyExists desc = Duplicate entry '[email protected]' for key 'User.User_email_key' (errno 1062) (sqlstate 23000) (CallerID: userData1): Sql: "insert into \`User\`(id, email, firstName, lastName) values (:vtg1 /* VARCHAR */, :vtg2 /* VARCHAR */, :vtg3 /* VARCHAR */, :vtg4 /* VARCHAR */)", BindVars: {vtg1: "type:VARCHAR value:\\"a85d5d75a3a886cb61eb3a0e\\""vtg2: "type:VARCHAR value:\\"jane@smith.com\\""vtg3: "type:VARCHAR value:\\"Jane\\""vtg4: "type:VARCHAR value:\\"Smith\\""} (errno 1062) (sqlstate 23000) during query: INSERT INTO \`test-0000-00000000\`.\`User\` (\`id\`,\`email\`,\`firstName\`,\`lastName\`) VALUES ('a85d5d75a3a886cb61eb3a0e','[email protected]','Jane','Smith')`;
Invalid \`prisma.user.create()\` invocation:
Unique constraint failed on the constraint: \`User_email_key\`
`;

exports[`extensions.tx (provider=mysql, js_planetscale) extended client in tx can rollback via normal call 1`] = `
Invalid \`xprisma.user.create()\` invocation in
/client/tests/functional/extensions/tx.ts:0:0
XX lastName: 'Smith',
XX },
XX }),
→ XX xprisma.user.create(
Unique constraint failed on the constraint: \`User_email_key\`
`;

exports[`extensions.tx (provider=postgresql) extended client in tx can rollback via custom call 1`] = `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,18 @@ Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(Server(ServerError { code: 1064, message: "syntax error, unexpected '-'", state: "42000" })), transient: false })
`;
exports[`fulltext-search (provider=mysql, js_planetscale) bad query 1`] = `target: test-0000-00000000.0.primary: vttablet: rpc error: code = InvalidArgument desc = syntax error, unexpected '-' (errno 1064) (sqlstate 42000) (CallerID: userData1): Sql: "select \`User\`.id, \`User\`.email, \`User\`.\`name\` from \`User\` where match(\`User\`.\`name\`) against (:vtg1 /* VARCHAR */ in boolean mode)", BindVars: {#maxLimit: "type:INT64 value:\\"10001\\""vtg1: "type:VARCHAR value:\\"John <--> Smith\\""} (errno 1064) (sqlstate 42000) during query: SELECT \`test-0000-00000000\`.\`User\`.\`id\`, \`test-0000-00000000\`.\`User\`.\`email\`, \`test-0000-00000000\`.\`User\`.\`name\` FROM \`test-0000-00000000\`.\`User\` WHERE MATCH (\`test-0000-00000000\`.\`User\`.\`name\`)AGAINST ('John <--> Smith' IN BOOLEAN MODE)`;
exports[`fulltext-search (provider=mysql, js_planetscale) bad query 1`] = `
Invalid \`.findMany()\` invocation in
/client/tests/functional/fulltext-search/tests.ts:0:0
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(process.platform !== 'win32' && clientMeta.runtime !== 'edge')('bad query', async () => {
XX const result = prisma.user
XX .findMany(
Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(Server(ServerError { code: 1064, message: "rpc error: code = InvalidArgument desc = syntax error, unexpected '-'", state: "42000" })), transient: false })
`;
exports[`fulltext-search (provider=postgresql) bad query 1`] = `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,49 @@ Invalid \`prisma.user.create()\` invocation in
Unique constraint failed on the constraint: \`User_email_key\`
`;

exports[`interactive-transactions (provider=mysql, js_planetscale) batching raw rollback 1`] = `target: test-0000-00000000.0.primary: vttablet: rpc error: code = AlreadyExists desc = Duplicate entry '1' for key 'User.PRIMARY' (errno 1062) (sqlstate 23000) (CallerID: userData1): Sql: "insert into \`User\`(id, email) values (:vtg1 /* VARCHAR */, :vtg2 /* VARCHAR */)", BindVars: {vtg1: "type:VARCHAR value:\\"1\\""vtg2: "type:VARCHAR value:\\"user_1@website.com\\""} (errno 1062) (sqlstate 23000) during query: INSERT INTO User (id, email) VALUES ('1', '[email protected]')`;
exports[`interactive-transactions (provider=mysql, js_planetscale) batching raw rollback 1`] = `
exports[`interactive-transactions (provider=mysql, js_planetscale) batching rollback 1`] = `target: test-0000-00000000.0.primary: vttablet: rpc error: code = AlreadyExists desc = Duplicate entry '[email protected]' for key 'User.User_email_key' (errno 1062) (sqlstate 23000) (CallerID: userData1): Sql: "insert into \`User\`(id, email) values (:vtg1 /* VARCHAR */, :vtg2 /* VARCHAR */)", BindVars: {vtg1: "type:VARCHAR value:\\"a85d5d75a3a886cb61eb3a0e\\""vtg2: "type:VARCHAR value:\\"user_1@website.com\\""} (errno 1062) (sqlstate 23000) during query: INSERT INTO \`test-0000-00000000\`.\`User\` (\`id\`,\`email\`) VALUES ('a85d5d75a3a886cb61eb3a0e','[email protected]')`;
Invalid \`prisma.$executeRaw()\` invocation:
Raw query failed. Code: \`1062\`. Message: \`rpc error: code = AlreadyExists desc = Duplicate entry '1' for key 'User.PRIMARY'\`
`;

exports[`interactive-transactions (provider=mysql, js_planetscale) batching rollback 1`] = `
Invalid \`prisma.user.create()\` invocation in
/client/tests/functional/interactive-transactions/tests.ts:0:0
XX email: '[email protected]',
XX },
XX }),
→ XX prisma.user.create(
Unique constraint failed on the constraint: \`User_email_key\`
`;

exports[`interactive-transactions (provider=mysql, js_planetscale) batching rollback within callback 1`] = `
exports[`interactive-transactions (provider=mysql, js_planetscale) batching rollback within callback 1`] = `target: test-0000-00000000.0.primary: vttablet: rpc error: code = AlreadyExists desc = Duplicate entry '[email protected]' for key 'User.User_email_key' (errno 1062) (sqlstate 23000) (CallerID: userData1): Sql: "insert into \`User\`(id, email) values (:vtg1 /* VARCHAR */, :vtg2 /* VARCHAR */)", BindVars: {vtg1: "type:VARCHAR value:\\"a7fe5dac91ab6b0f529430c5\\""vtg2: "type:VARCHAR value:\\"user_1@website.com\\""} (errno 1062) (sqlstate 23000) during query: INSERT INTO \`test-0000-00000000\`.\`User\` (\`id\`,\`email\`) VALUES ('a7fe5dac91ab6b0f529430c5','[email protected]')`;
Invalid \`tx.user.create()\` invocation in
/client/tests/functional/interactive-transactions/tests.ts:0:0
exports[`interactive-transactions (provider=mysql, js_planetscale) rollback query 1`] = `target: test-0000-00000000.0.primary: vttablet: rpc error: code = AlreadyExists desc = Duplicate entry '[email protected]' for key 'User.User_email_key' (errno 1062) (sqlstate 23000) (CallerID: userData1): Sql: "insert into \`User\`(id, email) values (:vtg1 /* VARCHAR */, :vtg2 /* VARCHAR */)", BindVars: {vtg1: "type:VARCHAR value:\\"a85d5d75a3a886cb61eb3a0e\\""vtg2: "type:VARCHAR value:\\"user_1@website.com\\""} (errno 1062) (sqlstate 23000) during query: INSERT INTO \`test-0000-00000000\`.\`User\` (\`id\`,\`email\`) VALUES ('a85d5d75a3a886cb61eb3a0e','[email protected]')`;
XX }),
XX ])
XX
→ XX await tx.user.create(
Unique constraint failed on the constraint: \`User_email_key\`
`;

exports[`interactive-transactions (provider=mysql, js_planetscale) rollback query 1`] = `
Invalid \`prisma.user.create()\` invocation in
/client/tests/functional/interactive-transactions/tests.ts:0:0
XX },
XX })
XX
→ XX await prisma.user.create(
Unique constraint failed on the constraint: \`User_email_key\`
`;

exports[`interactive-transactions (provider=postgresql) batching raw rollback 1`] = `
Expand Down
18 changes: 5 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c7d63e7

Please sign in to comment.